Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The URLPattern
interface matches URLs or parts of URLs against a pattern. The pattern can contain capturing groups that extract parts of the matched URL.
More information about the syntax of patterns can be found on the API overview page: URL Pattern API
Note: This feature is available in Web Workers