my $line = ""; while (local $_ = <DATA>) { print and next if $. <= 3; chomp; ($line = $_) =~ s/\S.*// if $line eq ""; # keep indent s/^\s*//; $line .= $_ . " "; if (m{/\d+:\d+ \W* $}x) { print "$line\n"; $line = ""; } }
In reply to Re: Complex regex with negated group
by repellent
in thread Complex regex with negated group
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |