Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^\/p\/([^\/]+)
/
gm
Input 1
1
New
/p/13d44644-ff7b-41c4-b6b4-4fd8c831c208/ /something-that-ends-in-p/anything/ /path/p/anything/