in reply to Add commas to numbers, a bit better

Sigh. :) Little do you know, fundflow, that you just used reversed regular expressions... yay!

japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: Add coma to numbers, a bit better
by danger (Priest) on Mar 03, 2001 at 02:01 UTC

    japhy, am I missing something about why reverse regexen would be little known? The reverse commify thingie has been in perlfaq5 for about 4 years now.

      But the algorithm was never named, nor paid much attention to. That FAQ entry is an isolated use of its powerful abilities.

      japhy -- Perl and Regex Hacker

        Well, actually, it was named "Poor man's look-behind" when it was first posted it to clpm in early '97, and while the name didn't stick, I certainly saw the same technique come up a few times in other discussions there as well as the reverse commify meme showing up in several places besides the faq.

Re: Re: Add coma to numbers, a bit better
by fundflow (Chaplain) on Mar 03, 2001 at 13:49 UTC
    Am i missing something here?

    This coma part of this script is exactly the one given in the FAQ BUT it adds two lines that make sure not to break tabular format --- which is all I wanted to share here.

    fun.