in reply to Population of an array

assumes non-nested <tag> tags:
my @big_heads = grep /BIG HEAD/, $s =~ m#<tag\d+>.*?</tag\d+>#sg;