# URLPattern

> The URLPattern global for matching URLs.

`URLPattern` is a global and follows the [URL Pattern Standard](https://urlpattern.spec.whatwg.org/), including the
`ignoreCase` option and `hasRegExpGroups`.

```js
new URLPattern({ pathname: "/users/:id" }).exec({ pathname: "/users/42" }).pathname.groups.id; // "42"
```
