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
/
(?i)(?<=\d-)(?<imagenum>\d+)\.jpg$
/
gm
Input 1
1
New
C2-123-1.JPG C2-123-2.JPG C2-123-3.JPG C3-333-1.JPG C3-333-2.JPG C3-333-4.JPG C3-333-999.JPG C3-456-2.JPG C3-111-2.JPG C3-999-4.JPG
Extraction
C2-123-1.JPG C2-123-2.JPG C2-123-3.JPG C3-333-1.JPG C3-333-2.JPG C3-333-4.JPG C3-333-999.JPG C3-456-2.JPG C3-111-2.JPG C3-999-4.JPG