From: Rodrigo Bermejo Date: 2009-09-04T23:42:48+09:00 Subject: Re: Regular expressions - string substitution Ne Scripter wrote: > Thanks all. I completely forgot about that. It always the simple things > > Marc Heiler wrote: >> "000000100".to_i.to_s # => 100 >>> I then though string.gsub(/^0/, "") however this only >>gets rid of the very first 0. string.gsub(/^0+/,"") -- Posted via http://www.ruby-forum.com/.