Regular Expressions 101

Library entries

Match all attributes/values of html document

Vote

0

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by anonymous - 7 years ago