You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The URLPattern API provides a web platform primitive for matching URLs based on a convenient pattern syntax.
Wildcards, named capture groups, regular groups, and group modifiers are all supported.
The syntax is based on the popular path-to-regexp library.
Thank you for proposing URLPattern for inclusion in Interop 2025.
We are pleased to let you know that this proposal was accepted as part of the URL Pattern focus area. You can follow the progress of this focus area on the Interop 2025 dashboard.
For an overview of our process, see proposal selection. Thank you for contributing to Interop 2025!
Description
Used to create URL pattern matchers.
The URLPattern API provides a web platform primitive for matching URLs based on a convenient pattern syntax.
Wildcards, named capture groups, regular groups, and group modifiers are all supported.
The syntax is based on the popular path-to-regexp library.
Specification
https://urlpattern.spec.whatwg.org/
Additional Signals
Safari position: support
Firefox position: support
Supported in Chrome and Edge and Deno
Developer sentiment
Ryan Toronto tweet with 580 likes
Michael Jackson (creator of React Router and Remix) tweet
Sebastien Lorber tweet
An Express maintainer is interested in using it for the Express router
There is a polyfill that is being downloaded from NPM many millions of times per week.
The text was updated successfully, but these errors were encountered: