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
/
(1234[\w ]+(Word \w+))((?:(?!1234)[\s\S])*)
/
g
Input 1
1
New
1234_This is a text Word AB Protocol Address ping Internet 1.1.1.1 - Internet 1.1.1.2 25 Internet 1.1.1.3 8 Internet 1.1.1.4 - 1234_This is a text Word BCD Protocol Address ping Internet 2.2.2.1 10 Internet 2.2.2.2 -