src code
RegExp#match(str) → Boolean
Return true if string matches the regular expression, false otherwise.