The URL Pattern Standard

Welcome to the newest standard maintained by the WHATWG: the URL Pattern Standard! The URL Pattern Standard gives a generic pattern syntax for matching URLs, and extracting the parts from them. It is inspired by the path-to-regexp library, although it extends beyond paths to encompass all the parts of a URL. You can read more […]


This content originally appeared on The WHATWG Blog and was authored by Domenic Denicola

Welcome to the newest standard maintained by the WHATWG: the URL Pattern Standard! The URL Pattern Standard gives a generic pattern syntax for matching URLs, and extracting the parts from them. It is inspired by the path-to-regexp library, although it extends beyond paths to encompass all the parts of a URL. You can read more about the API on MDN.

The URL Pattern Standard joins us as a graduation from the WICG, where it was authored by Ben Kelly. As part of the move to becoming a Living Standard, Jeremy Roman and Shunya Shishido are joining Ben as editors to help maintain and evolve the standard.

We see the URL Pattern Standard being adopted in many upcoming proposals, including speculation rules, compression dictionary transport, and service worker static routing. It has also seen adoption with implementations beyond web browsers, such as in Deno, Cloudflare Workers, Next.js Edge Runtime, and Netlify Functions. We are excited to provide a home for this primitive going forward.


This content originally appeared on The WHATWG Blog and was authored by Domenic Denicola


Print Share Comment Cite Upload Translate Updates
APA

Domenic Denicola | Sciencx (2023-10-25T05:30:02+00:00) The URL Pattern Standard. Retrieved from https://www.scien.cx/2023/10/25/the-url-pattern-standard/

MLA
" » The URL Pattern Standard." Domenic Denicola | Sciencx - Wednesday October 25, 2023, https://www.scien.cx/2023/10/25/the-url-pattern-standard/
HARVARD
Domenic Denicola | Sciencx Wednesday October 25, 2023 » The URL Pattern Standard., viewed ,<https://www.scien.cx/2023/10/25/the-url-pattern-standard/>
VANCOUVER
Domenic Denicola | Sciencx - » The URL Pattern Standard. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/10/25/the-url-pattern-standard/
CHICAGO
" » The URL Pattern Standard." Domenic Denicola | Sciencx - Accessed . https://www.scien.cx/2023/10/25/the-url-pattern-standard/
IEEE
" » The URL Pattern Standard." Domenic Denicola | Sciencx [Online]. Available: https://www.scien.cx/2023/10/25/the-url-pattern-standard/. [Accessed: ]
rf:citation
» The URL Pattern Standard | Domenic Denicola | Sciencx | https://www.scien.cx/2023/10/25/the-url-pattern-standard/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.