matches

Checks if the 2nd string matches the regular expression specified in the 1st argument.

Parameters:

No. Type Comments
1 string Regular expression
2 string Main string

Returns:

boolean - True if the regular expression matches.

Usages:

  • matches( regex : string, val : string) : boolean