Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > Pattern matching

Pattern matching

Performs regular expression matching and yields boolean to indicate if there was a match (~) or if there wasn't a match (!~) between candidate and a pattern. If pattern does not evaluate to pattern, it is converted to a string, which is compiled to a pattern.

For regular expressions, see: Regular expressions

  match-expr := exprcandidate "~" exprpattern 
  match-expr := exprcandidate "!~" exprpattern 
See also  | Expressions  | Grammar
Contributes notes:
Add a note
What's new | Anvil