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
/
(<[^>]*?)(\ssrc=)(.*?\/?>)
/
gm
Input 1
1
New
<img data-class="bar" src="foo.img" class="bar" alt="image" /> <iframe src="foo2.html" class="bar2" title="test"></iframe> <p>This is a sentence with the string src= in it.</p> <img data-src="foofoo.jpg" alt="I can haz data-src" class="databar" />
Extraction