From: "Vapor .." Date: 2007-11-19T22:22:11+09:00 Subject: Re: replacing spaces Stefano Crocco wrote: > Alle luned狸 19 novembre 2007, Vapor .. ha scritto: >> I have a long string "that looks like this". I want to replace all >> spaces in the string with " and ". > > "that looks like this".gsub(" ", " and ") > => that and looks and like and this > > Stefano thanks :) -- Posted via http://www.ruby-forum.com/.