Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $input='
    ...
    my @arr=$input=~m#&lt;[^<>]+(?:<a>.+?</a>[^<>]*)?>#g;
    local $"="\n";
    print "\n@arr";
    
  2. or download this
    &lt;This is sample text>
    &lt;This is  sample text <a>this is sample text</a> sample text >