Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?:[^_\n]+_){3}([0-9A-Za-z]+)(?:_[^_\n]+)*$
/
gm
Input 1
1
New
AAA_BBB_CCC_DDD_EEE This_is_a_test And_this_is_another_test This is a test And_this_is_another_test_again This_is_a This_is This
Extraction