Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
path-to-regexp examples
node v18.11.0
version:
2.0.0
endpoint
share
tweet
const { pathToRegexp, match, parse, compile } = require("path-to-regexp"); pathToRegexp('{/_next}?/adidas-sunglasses/or0013/35880{/}?')
parse('{/_next}?/adidas-sunglasses/or0013/35880{/}?')
Loading…
no comments
sign in
to comment