Help for this page

Select Code to Download


  1. or download this
    $a = q{<tag ref=1>Start<tag ref=2>and more</tag>and end</tag>};
    my @b;
    $a =~ s/(<\/?tag[^>]*>)(\w*)/push @b, ($1,$2)/eg;
    map {print $_,"\n"} @b;
    
  2. or download this
    <tag ref=1>
    Start
    ...
    </tag>
    and
    </tag>