Matches

Finds if a string matches the regular expression pattern

Matches("email@example.com", "\\w+@\\w+\\.com") → true
Matches("2023-10-05", "\\d{4}/\\d{2}/\\d{2}") → false

Inputs

Matches(string, searchRegexp, [isCaseSensitive])

  • string - A text value to search in

  • searchRegexp - A regular expression to search for

  • [isCaseSensitive] - [optional: true by default] - Set false if search should be case insensitive

Last updated