Regular Expressions 101

Community Patterns

1...56789...901

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