in reply to Re: Specific Regex with Multilines (/s and /m): Why Doesn't This Work?
in thread Specific Regex with Multilines (/s and /m): Why Doesn't This Work?

If the HTML files are not so large as to create a RAM issue, read the entire file into a scalar and:
$myHTML =~ s#<TR VALIGN="TOP">[\r\n]*(?:<TD><FONT SIZE="-1"></FONT></T +D>[\r\n]*){7}</TR>##g ;
Then process $myHTML.
  • Comment on Re^2: Specific Regex with Multilines (/s and /m): Why Doesn't This Work?
  • Download Code