The WHATWG Blog — The URL Pattern Standard

By admin

The URL Pattern Standard

Welcome
ORG

to the newest standard maintained by the

WHATWG
PERSON

:

the URL Pattern Standard
ORG

!

The URL Pattern Standard
ORG

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
ORG

on

MDN
ORG

.


The URL Pattern Standard
ORG

joins us as a graduation from the

WICG
ORG

, where it was authored by

Ben Kelly
PERSON

. As part of the move to becoming a Living Standard,

Jeremy Roman
PERSON

and

Shunya Shishido
PERSON

are joining

Ben
PERSON

as editors to help maintain and evolve the standard.

We see

the URL Pattern Standard
ORG

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
ORG

,

Cloudflare Workers
ORG

, Next.js Edge Runtime, and Netlify Functions. We are excited to provide a home for this primitive going forward.