in reply to Regexp doubts

Sorry sir, but you can only have doubts after you've read perlintro and perlretut ;) ?node_id=3989;HIT=comma%20number;re=N

Replies are listed 'Best First'.
Re^2: Regexp doubts
by ww (Archbishop) on May 01, 2010 at 10:27 UTC
    Perhaps AM meant for the third link to read: Re: How do I add commas to a number?

    As to your second question, this seconds AM's first two reading recommendations. You're looking to learn the difference between "lazy quantifiers" and "possessive quantifiers." If it's easier for you, try reading "Mastering Regular Expressions, Friedl (O'Reilly)" or the "Regular Expressions Pocket Reference, Stubblebine (O'Reilly)"