Tests if some text matches a regular expression. It returns an array of matched text or a boolean value: TRUE if the text matches the regular expression, FALSE otherwise.
REGEXMATCH(text, regular_expression, full, case_type)
text is the string that you want a regular expression to match.
regular_expression is the regular expression that describes the pattern that the text matches.
full is optional, and it determines whether to return an array or a boolean TRUE/FALSE. By default, returns TRUE/FALSE.
0: returns TRUE/FALSE
1: returns an array with all results matching the complete regular expression
case_type is optional, and it determines whether the matching operation ignores the case. By default, the match is case-sensitive.
0: case-sensitive
1: case-insensitive
Example:
text: The only way to do great work is to love what you do.
regular_expression: [a-z]+
returns TRUE
full: 1
returns ["he","only","way","to","do","great","work","is","to","love","what","you","do"]
full: 1 and case_type: 1
returns ["The","only","way","to","do","great","work","is","to","love","what","you","do"]
Text:
Regular expression:
Return an array
Ignore case
Result:
Suppose you have a list of email addresses, and you want to quickly identify which ones are in a valid format. You can use REGEXMATCH with a regular expression that defines the typical structure of an email address.
Table:
Name | Email Address | Is Valid? | ||
|---|---|---|---|---|
A | B | C | ||
1 | John Doe | john.doe@email.com | TRUE | |
2 | Jane Smith | jane_smith@work-email.net | TRUE | |
3 | Peter Jones | peter@jones | FALSE | |
4 | Mary Johnson | mary.johnson@.com | FALSE | |
5 | Robert Brown | robert.brown@company.co.uk | TRUE |
Here's a breakdown of the usage and the results in the table:
The REGEXMATCH function processes each cell in the "Email Address" column and produces a result in the "Is Valid?" column.
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof