# REGEXTEST Function

> Check whether text matches a regular expression with REGEXTEST in TX Sheet Control: TRUE or FALSE, case-sensitive or not, and invalid patterns as #VALUE!.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > REGEXTEST Function
- **201 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/regextest/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/regextest/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/regextest/llms-full.txt

---

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

```text
REGEXTEST(text, pattern, case_sensitivity)
```

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

Available for supported offline calculation.

### Examples

```text
=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

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [REGEXREPLACE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/regexreplace/llms-full.txt)
- **Next:** [REGISTER.ID Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/register-id/llms-full.txt)
