instance method RegExp#match

View source on GitHub →

RegExp#match(str) → Boolean
  • str (String) – a string against witch to match the regular expression.

Alias of the native RegExp#test method. Returns true if str matches the regular expression, false otherwise.