F$MATCH WILD()

From VSI OpenVMS Wiki
Revision as of 15:58, 28 June 2019 by Darya.zelenina (talk | contribs) (Created page with "'''F$MATCH_WILD()''' is a lexial function that performs a wildcard matching between a candidate and a pattern string. TRUE is returned if the strings mat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

F$MATCH_WILD() is a lexial function that performs a wildcard matching between a candidate and a pattern string. TRUE is returned if the strings match.

Syntax

F$MATCH_WILD(candidate, pattern)

Arguments

candidate

A string to which the pattern string is compared.

pattern

A string on which a wildcard match is performed comparing the pattern to the candidate string.

Examples

$ write sys$output f$match_wild ("This is a candidate","*c%%d*")
  TRUE

This command performs a wildcard match between the candidate candidate and pattern *c%%d* and found that the strings match.

$ write sys$output f$match_wild ("This is a candidate text", "*candi*)
  TRUE

This command checks to see if the pattern candi appears in the candidate.