Regular Expressions 101

Community Patterns

html img tag src

0

Regular Expression
ECMAScript (JavaScript)

/
<img.*?src\s*=\s*"(.+?)"
/
gi

Description

get src url from img tag in html

Submitted by anonymous - 8 years ago