# selection.compileBoundedRegex

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

```
function compileBoundedRegex(pattern: string): RegExp
```

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

## Parameters

- `pattern` (`string`)
