1. Home
  2. Functions
  3. Text
  4. REGEXMATCH

REGEXMATCH function

Checks whether any part of a text matches a regular expression pattern (case sensitive).

Syntax

=REGEXMATCH(text, regular_expression)

Arguments

ArgumentRequiredDescription
textRequiredThe text to test
regular_expressionRequiredThe regular expression

How to use REGEXMATCH

REGEXMATCH takes 2 required arguments. Type =REGEXMATCH( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=REGEXMATCH("Spreadsheets", "S.*s")Result TRUE
=REGEXMATCH("abc", "\d")Result FALSE

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.