Node:Matching, Next:, Up:Strings



String Matching

string match pattern [replacement] Macro
Match string against the regular expression pattern. If string matches the entire pattern, return replacement, except that substitution occurs in replacement, as discused <<below>>. If the match fails, raise a comparison failure.

The string is evaluated; pattern and replement are not.