Robert Dober
6/13/2009 2:45:00 PM
On Sat, Jun 13, 2009 at 3:40 PM, Phlip<phlip2005@gmail.com> wrote:
> Rubies:
>
> Besides .gsub(',', '').to_i, what's a good way to un-delimit a big number=
?
>
> Ideally, it should be the reverse of Rails's number_with_delimiter...
>
> --
> =A0Phlip
>
I would be quite happy with gsub, but if you want another shot on it
you might do
scan(/\d/).join
or
scan( /[+\d-]).join
HTH
Robert
--=20
Toutes les grandes personnes ont d=92abord =E9t=E9 des enfants, mais peu
d=92entre elles s=92en souviennent.
All adults have been children first, but not many remember.
[Antoine de Saint-Exup=E9ry]