in reply to How do I extract all text around a keyword between two symbols?
foreach ($text =~ m#<tr>(.*?)</tr>#gmsi) { # Note that foreach assigns the memorized text to $_ if (/\bISTF\b/) { print "$_\n"; } } [download]