Help for this page

Select Code to Download


  1. or download this
    @tags = grep defined, $xml =~ /<!--.*?-->|(<(?>[^"'>]+|'[^']*'|"[^"]*"
    +)*>)/sg;
    
  2. or download this
    @tokens = split /<!--.*?-->|(<(?>[^"'>]+|'[^']*'|"[^"]*")*>)/s, $xml;