From: Brian Candler Date: 2009-08-27T00:39:15+09:00 Subject: Re: spaces in strings 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. ruby 1.7 was only a development version, so you should move to 1.8.6 if possible. However, "it doesn't seem to work" is not a useful problem description. You need to show exactly what you ran, the exact output (copy-paste), what you expected the output to be, and what platform you are running under. The code snippet you have shown looks OK to me. -- Posted via http://www.ruby-forum.com/.