REGEXMATCH in Google Sheets

Returns TRUE if a text contains a pattern (a regular expression).

Syntax

REGEXMATCH(text, regular_expression)
text
The text to search. It must be text; a number gives #VALUE!.
regular_expression
The pattern in quotes, such as "\d+" for one or more digits.

Examples

C1=REGEXMATCH(A2,"\d+")
ABC
1NoteTRUE
2Order 1001

In plain words: TRUE when the note in A2 contains at least one digit.

C1=REGEXMATCH(A2,"^DK")
ABC
1ZIP codeFALSE
2SE-111 22

Practice REGEXMATCH

Related functions