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
/
\[ERROR\:.*?:program2
/
gm
Input 1
[ERROR:location1:program1.34] [ERROR:location10:program2.10] [ERROR:location4:program2.45] [ERROR:location9:program1.30] [ERROR:location2:program2.60] [INFO:location2:program2.60] [WARN:location4:program2.45]
Extraction
[ERROR:location1:program1.34] [ERROR:location10:program2.10] [ERROR:location4:program2.45] [ERROR:location9:program1.30] [ERROR:location2:program2.60] [INFO:location2:program2.60] [WARN:location4:program2.45]