From: dblack@... Date: 2007-06-29T06:40:36+09:00 Subject: Re: Help with regular expression Hi -- > On Fri, 29 Jun 2007, Jesse Hk wrote: > Am I missing something here? Why not just test for equality? > > > irb(main):001:0> "foo" == "foo" > => true > irb(main):002:0> "foo" == "bar" > => false That doesn't cover the case where the string includes the substring "bar" but also includes other characters. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)