# selection.RegexCriteriaData

- **Module:** selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/selection.ts#L105
- **Page:** https://libtmux.org/en/ts/latest/reference/selection-regexcriteriadata/

A pattern and its flags, kept apart from any regular-expression object.

Criteria are serialised and sent to servers that are not this process, so
they carry the source text rather than a compiled `RegExp`. Only multiline
and dot-all are offered: the others change meaning across engines.

## Members

- `flags` (property)
- `pattern` (property)
