From: Harry Kakueki Date: 2009-07-15T19:48:15+09:00 Subject: Re: Search in string with regular expression > Maybe >  str2 = str1.scan( /\bfrog\w*\B/ ).join(" ") > that is if you want to match frog at the start of words only (\b) and > assure charcters of your choice up to the end of the word? As \w might > be a little bit too permissive, in 1.9 you might prefer >   str2 = str1.scan( /\bfrog[[:alpha:]]*\B/ ).join(" ") > and all those nice variations ;) > > HTH > Robert > > > Or maybe, :) str2 = str1.scan( /\bfrog\w*\b/ ).join(" ") Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/ruby/list.html