Regular Expressions 101

Community Patterns

Community Library Entry

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 - 10 years ago