# selection.RegexCriteriaData

- **Module:** selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/selection.ts#L140
- **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`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp). Only multiline
and dot-all are offered: the others change meaning across engines.

## Members

### Other members

- [`flags`](/en/ts/latest/reference/selection-regexcriteriadata-flags/) (property)
- [`pattern`](/en/ts/latest/reference/selection-regexcriteriadata-pattern/) (property)
