# RegexPattern.containsMatch(in:maximumWork:)

- **Module:** RegexPattern
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/RegexPattern.swift#L123
- **Page:** https://libtmux.org/en/swift/latest/reference/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`
