while (<SPG>) { s/^\s+//; s/\s+$//; if (!/\s/) { $_ .= <SPG>; redo; } my ($title, $status) = ( split /\s+/ )[0,5]; print "$title $status\n"; }
In reply to Re: Regexes, stitching broken lines, and other fun stuff.
by ikegami
in thread Regexes, stitching broken lines, and other fun stuff.
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |