Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Extract file name from path
Open Workspace
PCRE2 (PHP)
Match
Created 2022-12-08 15:32
0
Regular Expression
/
(?=
[^
\/
]
+
$
)(
.
*
(?=
\.
)
)
/
gm
Description
Extracts string between the last / and .
Submitted by
superfranky32