Park Heesob wrote: > Hi, > ----- Original Message ----- > From: "John Butler" <johnnybutler7 / gmail.com> > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" <ruby-talk / ruby-lang.org> > Sent: Friday, April 11, 2008 7:05 PM > Subject: Match string from possible strings > > >> route a >> else >> route b >> end >> >> Anyone know the quick way? >> >> JB > > Is this what you want? > > if [string1,string2,string3].include?("Test") > ... > > Regards, > Park Heesob Yes, This is what i have used, thanks JB -- Posted via http://www.ruby-forum.com/.