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
~
[a-z]\d{2,4}(?:-[a-z]\d{2,4})?(?:-[a-z])?
~
gm
Input 1
New
/s1600/ /s1600-c/ /w80-h50/ /w300-h480-c/ /w80/ /w80-c/ /h50/ /h50-c/