# FilterExpr.matches(_:)

- **Module:** FilterExpr
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/FilterExpr.swift#L193
- **Page:** https://libtmux.org/reference/swift/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`
