Re: How can I output my numbers with commas added?

[email protected] (_brian_d_foy)
Newsgroups perl.perlfaq.workers
Message-ID <050120032323323529%[email protected]>
In article <[email protected]>, Pizza
<[email protected]> wrote:

> i offer the following regex in replacement to Mr. Goldberg's:
> 
> s/(^[-+]?\d+?(?=(?>(?:\d{3})+)(?!\d))|\G\d{3}(?=\d))/$1,/g;
> 

what's the advantage to yours?

-- 
brian d foy, [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.