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
/
<iframe(?!<\/iframe>)[\s\S]*?data-context[\s\S]*?<\/iframe>
/
ig
Input 1
1
New
<iframe src="http://youtube.com"></iframe> <iframe data-context="whatever" src="http://youtube.com"></iframe> <iframe src="http://youtube.com"></iframe> <iframe src="http://youtube.com"></iframe> <p>Potatoes are good</p> <iframe src="http://youtube.com"></iframe> <iframe src="http://youtube.com" data-context="whatever"></iframe> <iframe src="http://youtube.com"></iframe> <iframe src="http://instagram.com"></iframe>