What I need is something like this:
/<[wd]+ ([wd]+=[wd])+/>/
Something that would match several attribute key/value pairs. Is that possible?
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.
2.1m questions
2.1m answers
60 comments
57.0k users