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
~
(?=.*insert)(?=.*name).+
~
g
Input 1
1
New
I would like to test if a string contains insert and name, with any interceding characters. And if it does, I would like to print the match. this line not this insert neither neither name but insert and name !
Substitution