Regular Expressions 101

Community Patterns

0

Date

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 4 years ago
0

IQ-1

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 4 years ago
0

jsonp

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 4 years ago

Get src and srcset image attributes, and other attributes

1

Regular Expression
PCRE (PHP <7.3)

/
<img(([^>]*)srcset\=(?:\"|\')([^\"\']*)(?:\"|\'))?([^>]*)src=(?:\"|\')([^\"\']*)(?:\"|\')(([^>]*)srcset\=(?:\"|\')([^\"\']*)(?:\"|\'))?([^>]+)*>
/
g

Description

Loading markdown...
Submitted by Geoffrey Crofte & S├ębastien Decamme - 8 years ago