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
/
(<img\b|(?!^)\G)[^>]*?\b(src|width|height)=(["']?)([^>]*?)\3
/
g
Input 1
1
New
<img src="myurl.jpg" width="12" height="32"> <img src="myurl.jpg" height="32" width="12"> <img src='myurl.jpg' height='32' width='12'> <link src="ttt"/>