From: Roger Pack Date: 2011-02-12T01:33:44+09:00 Subject: Re: RCR feedback: Numeric#grouped John Feminella wrote in post #980950: > Try this: > > ==== begin snippet ==== > class Numeric > def separate(sep=",") > self.to_s.reverse.scan(/(?:\d*\.)?\d{1,3}-?/).join(sep).reverse > end > end I like the method name...any feedback on whether or not this should be in core? (my inclination is yes...) -r -- Posted via http://www.ruby-forum.com/.