# selection.compileBoundedRegex

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

```
selection.compileBoundedRegex(pattern: : string) -> RegExp
```

Compile a regex under the deterministic selection-query work budget.
