- or download this
my @arr = grep {/\[tab\]/ and s/^<p>//} split /<\/p>/, $contents;
- or download this
my @arr = grep /\[tab\]/, split /(?<=<\/p>)/, $contents;
- or download this
{
local $/ = '</p>';
...
@arr = grep /^<p>/ && /\[tab\]/, <STR>;
print "read $_\n" for @arr;
}