this will print the last number on each line, if it is the last character on the line. for any more help, you're going to have to let us know how you decide that you want to print something.while (<FILE>) { print "$1\n" if $_ =~ m/(\d+)$/ }
In reply to RE: RE: Re: Reg. Expression problem
by jlistf
in thread Reg. Expression problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |