From: Lucky Nl Date: 2012-04-11T15:01:31+09:00 Subject: Re: need to match words from setence Please see below cases hope you can understand now my search word is "important" am trying check this word existed in querystring or not if querystring = “I am looking for important message” expected true if querystring = “I am looking for @important. message” expected true if querystring = “I am looking for @important message” expected true if querystring = “I am looking for important. message” expected true if querystring = “I am looking for importantdata message” expected false if querystring = “I am looking forimportant. message” expected false if querystring = “I am looking @@important%. message” expected false Hassan Schroeder wrote in post #1055884: > On Tue, Apr 10, 2012 at 10:47 AM, Lucky Nl wrote: > >> Hope this clear now > > What would make your requirements clear would be to write and post > some unit tests that demonstrate your success/fail conditions. > > That might actually lead you to a solution, for that matter :-) > > FWIW, -- Posted via http://www.ruby-forum.com/.