Regular Expressions 101

Community Patterns

Extract all XML attribute names

0

Regular Expression
PCRE (PHP <7.3)

Description

Extracts attribute names from an XML file and presents them as a simple list. Affects all attributes, having or not having values. Includes the "parent" attributes (that have no values but have nested attributes).

Submitted by O.Khilkevych / D.Mrachkovskyi - 9 years ago