Regular Expressions 101

Community Patterns

parse some html img

0

Regular Expression
PCRE (PHP <7.3)

/
<img(.[^src]*)src=\"(.[^"]*)\"(.[^>]*)>
/
g

Description

task is prepend domain to all src img. why 3rd img doesnt parse???

Submitted by adminko - 9 years ago