Regular Expressions 101

Community Patterns

Finds HTML img tags

-2

Regular Expression
PCRE (PHP <7.3)

/
<img.*?src\s*=\s*("|')(?P<source>.*?)\1.*?>
/

Description

no description available

Submitted by Matt Solum - 11 years ago