in reply to How do I extract all text around a keyword between two symbols?

You could use Table::Extract, HTML::Parser, or just have a go with your technique:
foreach ($text =~ m#<tr>(.*?)</tr>#gmsi) { # Note that foreach assigns the memorized text to $_ if (/\bISTF\b/) { print "$_\n"; } }
  • Comment on Re: How do I extract all text around a keyword between two symbols?
  • Download Code