F$MATCH WILD()
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.