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/.