Skip to main content
← All functions

REGEXTEST function

Test whether text contains a regular-expression match.

This reference covers the native Excel function. Its required application features or connected services are not implemented by the local worksheet engine. Check the linked Microsoft documentation for availability and complete option values.

Syntax

REGEXTEST(text, pattern, [case_sensitivity])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
textYesText to examine or process.
patternYesA regular expression describing the text to match; Excel uses PCRE2 syntax.
case_sensitivityNoControls whether uppercase and lowercase characters are distinguished.

Try REGEXTEST

Choose the documented case sensitivity

=HSTACK(REGEXTEST(A2,B2,0),REGEXTEST(A2,B2,1))

The same literal pattern is false under case-sensitive flag 0 and true under case-insensitive flag 1. The pinned parser alias is handled without removing its scalar pattern safety checks.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

REGEXTEST · inside HSTACK

=HSTACK(REGEXTEST(A2,B2,0),REGEXTEST(A2,B2,1))

1 / 3 · text

Text to examine or process.

REGEXTEST reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Original SheetTutor reference notes / Microsoft documentation. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.