Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?!\/)[^\/]+\/?$
/
gm
Test String
New
file:///home/pasta/pasta/img/intro-bg.jpg http://www.google.com/m8/feeds/contacts/myemail%40gmail.com/base/nabb80191e23b7d9 https://regex101.com/r/mblcCW/1/ https://pt.stackoverflow.com/questions/249556/express%C3%A3o-regular-para-capturar-depois-da-%C3%BAltima-barra
Substitution
Processing...