The trouble is not with regexp but with lines to match.
But we can fix them:
my $prev = ''; LINE: while ( <> ) { next LINE if "$prev$_" =~ m/\.{4}<B.*ird>/s .. /(\+\=\+)$/; print; $prev = $_; }
In reply to Re: Matching a range of lines using a regex (the .. and ... operators)
by ccn
in thread Matching a range of lines using a regex (the .. and ... operators)
by hambo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |