From: Graham Agnew Date: 2009-08-27T00:06:25+09:00 Subject: Re: spaces in strings 7stud -- wrote: > Joonas Lindholm wrote: > > str = "1 334.64" > puts str > > str.gsub!(/\s/, "") > puts str > > --output:-- > 1 334.64 > 1334.64 > The code above works fine for me on HP-UX: ruby 1.8.7 (2008-08-11 patchlevel 72) [ia64-hpux11.23]. -- Posted via http://www.ruby-forum.com/.