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
r"
^\d{1,4}[_].*
"
gm
Input 1
1234_test.mp3 999_test.mp3 12_test.mp3 0_test.mp3 0t_est.mp34 t_est1234.mp3 @_test.mp3 /_test.mp3 \\_test.mp3
Substitution
1234_test.mp3 999_test.mp3 12_test.mp3 0_test.mp3 0t_est.mp34 t_est1234.mp3 @_test.mp3 /_test.mp3 \\_test.mp3