From: "Jean G." Date: 2010-03-12T21:09:36+09:00 Subject: Re: how to get word from sentence On Fri, Mar 12, 2010 at 6:48 PM, Rajkumar Surabhi wrote: > Hi all, > > In my application i have to get the word which contains given word. > > example > > sentence: iam testung the aplication > > i want to extract the word which starts with test > or use scan: irb(main):005:0> s="iam testung the aplication" => "iam testung the aplication" irb(main):006:0> s.scan /\btest\w*/ => ["testung"]