match method

bool match (dynamic value dynamic regexp)

Checks if string matches a regular expression

  • value a string value to match
  • regexp a regular expression string Returns true if the value matches regular expression and false otherwise.