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
@"
^([^_]+_){5}[^_]+$
"
im
Input 1
1
New
ABC_2019_02_01_blabla_05.pdf abcdef_____.pdf ABC_DEF_192_1111_oaoaoa.pdf
Extraction
ABC_2019_02_01_blabla_05.pdf abcdef_____.pdf ABC_DEF_192_1111_oaoaoa.pdf