Matches
Matches("[email protected]", "\\w+@\\w+\\.com") → true
Matches("2023-10-05", "\\d{4}/\\d{2}/\\d{2}") → falseInputs
Last updated
Finds if a string matches the regular expression pattern
Matches("[email protected]", "\\w+@\\w+\\.com") → true
Matches("2023-10-05", "\\d{4}/\\d{2}/\\d{2}") → falseMatches(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