Regular Expressions 101

Community Patterns

Match all attributes/values of html document

0

Regular Expression
PCRE (PHP <7.3)

/
(?:\s+(?<attr>[\w:-]+)="(?<value>[^"]*)")
/
gU

Description

no description available

Submitted by anonymous - 10 years ago