in reply to Why a regex *really* isn't good enough for HTML and XML, even for "simple" tasks

This is an interesting regex semi-solution: Shallow XML parsing using XML::Parser::REX which is regex-based.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re: Why a regex *really* isn't good enough for HTML and XML, even for "simple" tasks
  • Download Code