HP OpenVMS Systems Documentation

Content starts here

HP OpenVMS DCL Dictionary


Previous Contents Index

F$MATCH_WILD

Performs a wildcard matching between a candidate and a pattern string. TRUE is returned if the strings match.

Format

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.

Example


$ 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.


Previous Next Contents Index