---
title: "matches(_:options:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextension/matchpattern/matches(_:options:)-fnde"
---

# matches(_:options:)

Matches the receiver pattern against the specified pattern with options.

## Declaration

```swift
func matches(_ pattern: WKWebExtension.MatchPattern?, options: WKWebExtension.MatchPattern.Options = []) -> Bool
```

## Parameters

- `pattern`: The pattern to match against the receiver pattern.
- `options`: The options to use while matching.

## Return Value

Return Value A Boolean value indicating if the receiver pattern matches the specified pattern.

## See Also

### Related Documentation

- [matches(_:)](webkit/wkwebextension/matchpattern/matches(_:)-4d84f.md)
