in reply to Matching numbers by regex.

What was the purpose of \d*\d+ in the regex?

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Matching numbers by regex.
by Wasted (Initiate) on Apr 20, 2006 at 07:54 UTC
    I thought that it behaved the opposite to greedy. just the \d+ was there but only matching the last digit.
    So I thought I could force it to accept the first digit of the last number by adding a \d*.
    That didn't work so I came here for help, I'm new to this whole regexp business.