in reply to RE: Re: Reg. Expression problem
in thread Reg. Expression problem
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+)$/ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Re: Reg. Expression problem
by Anonymous Monk on Aug 02, 2000 at 20:51 UTC | |
by nuance (Hermit) on Aug 02, 2000 at 20:55 UTC |