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
r"
(<iframe.*?src=\\")([^ ]*?)(\\".*?>)(.*?)(<\/iframe>)
"
g
Input 1
hello <iframe width=\"626\" height=\"782\" src=\"https://www.youtube.com/embed/QGug_eltOnE\" frameborder=\"0\" allowfullscreen></iframe> <iframe src=\"https://www.youtube.com/embed/QGug_eltOnE\" frameborder=\"0\" allowfullscreen></iframe> dear
Substitution
hello <iframe width=\"626\" height=\"782\" src=\"https://www.youtube.com/embed/QGug_eltOnE\" frameborder=\"0\" allowfullscreen></iframe> <iframe src=\"https://www.youtube.com/embed/QGug_eltOnE\" frameborder=\"0\" allowfullscreen></iframe> dear