# FilterExpr.matches(_:)

- **Module:** FilterExpr
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/FilterExpr.swift#L207
- **Page:** https://libtmux.org/en/swift/latest/reference/filterexpr-matches(_-)/

```
FilterExpr.matches(_:)(root: Root) -> Bool
```

Whether one value satisfies this filter.

Evaluated against a value already in hand. Matching never reaches tmux,
so iterating results cannot spawn a process.

## Raises

- `RegexMatchError`
