Converting numbers or currency to comma delimited format with Ruby regex

Posted by science on March 27, 2008

Bring back the five thousand dollar bill!

There may be much easier ways to do this but Science wrote a nice little regular expression which will convert your numbers to comma delimited strings in pure Ruby. It demonstrates some cool features of Ruby from which maybe you will learn!
Continue reading…