From: jake kaiden Date: 2011-11-02T03:00:04+09:00 Subject: Re: Working from a string to an array hi Paul, well, i don't know how sexy it is ;) ...but you could write a `transform` method which splits the String given as its argument (using #split,) into an Array. you could then use #gsub! to replace any elements of the Array that match keys of the Hash with the value associated with the key... gsub(pattern, hash) → new_str http://www.ruby-doc.org/core-1.9.2/String.html#method-i-gsub hth- -j -- Posted via http://www.ruby-forum.com/.