From: Ralf Mueller Date: 2009-08-27T04:53:44+09:00 Subject: Re: spaces in strings Joonas Lindholm wrote: > Brian Candler wrote: > > >> 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. >> > > Ups, what I meant is that the 1.8.6 is the version I have home and at > other computer 1.8.7. But if the gsub!(/\s/, '') looks fine I have to do > more testing.. > String#tr works similar with easier interface: http://www.ruby-doc.org/core/classes/String.html#M000830