This function uses regular expression syntax to match a string to a pattern. The pattern must be a valid regular expression pattern.
This match operation does a complete match. It will not match, if the pattern only matches/represents a part of the string.
Matches( string, pattern )
string | database field containing a string or a text string |
---|---|
pattern | a string which defines the regular expression pattern |
True, if string is a complete match to pattern.
Matches ("Berlin", "B.rlin") // Returns True. Matches ("Berlin", "B.*") // Returns True. Matches ("Berlin", "[Berlin]{6}") // Returns True. Matches ("Berlin", ".") // Returns False, since it is only a partial match.