in reply to Matching lines in a file that end in numbers (was: regular expression)
I don't understand from your question what you're trying to print, exactly. If you don't want to print any of the numbers, use: /(.*?)\d+/. That will make the first part of your regular expression non-greedy. This means it will match as little as possible before stopping.
If that's not what you're looking for, please clarify.
HTH HAND
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regular expression
by Anonymous Monk on Feb 28, 2001 at 11:30 UTC | |
by tadman (Prior) on Feb 28, 2001 at 20:08 UTC |