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
/
\/api\/ping(?:[.\/].*)?$
/
gm
Input 1
1
New
/api/ping.json /api/ping /api/ping/xxx/sss.json /api/ping.xml and this should NOT match /api/pingpong /api/ping_pong /api/ping-pong
Substitution
/api/ping.json /api/ping /api/ping/xxx/sss.json /api/ping.xml and this should NOT match /api/pingpong /api/ping_pong /api/ping-pong