From: Glenn Jackman Date: 2009-08-27T05:30:07+09:00 Subject: Re: spaces in strings At 2009-08-26 12:37PM, "Joonas Lindholm" wrote: > I have a string like '1 334.64' and I need to remove the space so that > it becomes '1334.64'. I have I think ruby 1.6 in home computer where > worked gsub!(/\s/, '') but in other computer I have ruby 1.7 and it > doesn't seem to work. An option nobody has suggested so far: String#delete "1 334.64".delete(" ") # ==> "1334.64" -- Glenn Jackman Write a wise saying and your name will live forever. -- Anonymous