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 insearchRegexp
- A regular expression to search for[isCaseSensitive]
- [optional:true
by default] - Setfalse
if search should be case insensitive
Last updated
Was this helpful?