From: James Dinkel Date: 2008-07-25T06:40:20+09:00 Subject: Re: using (word|other) in str.include? Sebastian Hungerecker wrote: > James Dinkel wrote: >> do something if mystring.include?("something (word1|word2): something") > > It surprises me quite a bit that that ever worked. Here's what should > work: > do something if mystring =~ /something (word1|word2): something/ > > HTH, > Sebastian yep, that works. Thanks! -- Posted via http://www.ruby-forum.com/.