Regular Expressions 101

Library entries

Remove width and height from img tag

Vote

1

Regular Expression
javascript

/
(<img.*?)(height=".*?")|(width=".*?")(.*?>)
/
gi

Description

Loading markdown...
Submitted by anonymous - a year ago