in reply to Regular Expressions Matching with Perl
Could possibly try a fixed-width solution, but i'd be worried that it wouldn't work if the first or third columns varied too much in size.$line =~ s/^\s+//g; # strip leading whites +pace $line =~ s/\s+$//g; # strip trailing white +space my @cols = split(/ +/, $line); # split on spaces my $filename = join(' ', splice(@lines, 7) ); # piece back together +the filename push @temp, $filename; # store filename
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expressions Matching with Perl
by nimdokk (Vicar) on Apr 20, 2005 at 17:46 UTC | |
by salva (Canon) on Apr 21, 2005 at 10:12 UTC |