Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
<img.+src=[\'"](?P<src>.+?)[\'"].*>
/
i

Description

Search first image in string

Submitted by anonymous - 8 years ago