Regular Expressions 101

Community Library Entry

3

Regular Expression
ECMAScript (JavaScript)

/
<img.*?src="([^"]*)"[^>]*>(?:</img>)?
/
gi

Description

Capture src attribute of HTML image tags

Submitted by Simon Altschuler - 11 years ago