Just use \s* to eat up all the spaces, and $1 to access the captured result.
my $file = './max/base/file.c: $(ROOT)/../../../api/maX \\'; if ($file =~ /:\s*(.*)/) { print "$1\n"; }
In reply to Re: printing just part of data
by wind
in thread printing just part of data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |