[Solved] How can I match XML tags and attributes with a regular expression in Perl?


You’ll have much more succes using an XML parser, for example, XML::Parser. Parsing XML using regular expressions is very difficult (impossible?) and unless your use case is trivial, a proper XML parser is the reliable solution.

1

solved How can I match XML tags and attributes with a regular expression in Perl?