SheetRocks
Documentation/Formulas/REGEXMATCH

REGEXMATCH

Returns true if the text matches the regular expression pattern; otherwise returns false.

Syntax

REGEXMATCH(text, pattern)

Arguments

Argument Description Required
text The text to search in. Required
pattern The regular expression pattern to match against. Required

Examples

Check if text contains digits

=REGEXMATCH("Hello123", "\d+")
Result ⇒ true

Validate email format

=REGEXMATCH("[email protected]", "@.*\.")
Result ⇒ true

Check pattern in cell text

=REGEXMATCH(A1, "[A-Z]+-\d+")
Result ⇒ true
A
1 ABC-123

Related Functions

Other Text functions:


← Back to Formula Reference