From: Harry Kakueki Date: 2007-06-17T13:03:52+09:00 Subject: Re: redefining word boundaries? On 6/17/07, jmb-d wrote: > > My next attempt was to do it by hand, like this: gsub(/^/, "'").gsub(/ > $/, "'"). This worked, but seems a bit like a hack. > Does this give you the proper format? arr = ["ABCD.E","FGHI.J","KLMN.O"] puts arr.map{|x|"'#{x}'"}.join(",") Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/