# RegexPattern.containsMatch(in:maximumWork:)

- **Module:** RegexPattern
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/RegexPattern.swift#L108
- **Page:** https://libtmux.org/reference/swift/regexpattern-containsmatch(in-maximumwork-)/

```
RegexPattern.containsMatch(in:maximumWork:)(in: String, maximumWork: Int) -> Bool
```

Returns whether the expression occurs in `input` before its positive work budget.

## Raises

- `RegexMatchError`
