files/en-us/web/api/urlpattern/index.md
{{APIRef("URL Pattern API")}} {{AvailableInWorkers}}
The URLPattern interface of the {{domxref("URL Pattern API", "", "", "nocode")}} 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: {{domxref("URL Pattern API", "", "", "nocode")}}.
URLPattern object based on the given pattern and base URL.URLPattern components contain regular expression capturing groups.null if the URL
does not match.true if the URL matches the given pattern, false otherwise.{{Specifications}}
{{Compat}}
URLPattern is available
on GitHub