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

# matches(_:options:)

Matches the receiver pattern against the specified URL with options.

## Declaration

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

## Parameters

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

## Return Value

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

## See Also

### Related Documentation

- [matches(_:)](webkit/wkwebextension/matchpattern/matches(_:)-471rf.md)
