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

Posted by Mike Thomsen on Stack Overflow See other posts from Stack Overflow or by Mike Thomsen
Published on 2010-03-11T16:36:46Z Indexed on 2010/03/28 18:53 UTC
Read the original article Hit count: 277

Filed under:
|
|

What I need is something like this:

/<[\w\d]+ ([\w\d]+\=[w\d])+\/>/

Something that would match several attribute key/value pairs. Is that possible?

© Stack Overflow or respective owner

Related posts about perl

Related posts about regex