From: Joel Pearson Date: 2012-12-07T06:49:37+09:00 Subject: Re: Trying to get "translator" to work "Jesús Gabriel y Galán" wrote in post #1088119: > On Thu, Dec 6, 2012 at 8:51 PM, JD KF wrote: >> any that proceed it) to shift to the back and ad an +ay to the end. >> word = "square" > => "square" >> first, second = word.match(/(.*qu)(.*)/).captures > => ["squ", "are"] >> "#{second}#{first}ay" > => "aresquay" > > Jesus. Way better than the shameful hack I ended up trying (writing another method to pass all the results through) :) -- Posted via http://www.ruby-forum.com/.