TX Sheet Control

REGEXTEST Function

Function

Check whether a text matches a regular expression, and return TRUE or FALSE. text is the text to test and pattern the regular expression; case_sensitivity 0 or omitted matches case-sensitively and 1 ignores case. An invalid pattern returns #VALUE!.

Syntax

REGEXTEST(text, pattern, case_sensitivity)

Category: Text. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=REGEXTEST("TX42","[0-9]+")

The formula returns TRUE, because TX42 contains digits.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also