From: Hassan Schroeder Date: 2011-02-03T04:05:46+09:00 Subject: Re: Need "=" to look like a strint On Wed, Feb 2, 2011 at 10:19 AM, Bob Hatch wrote: > I have the following variable. Ruby looks at the = sign as a regex > literal and I need it to be recognized as text. > > search_text =! %r{ >  = > }x ruby-1.8.7-p302 > pattern = %r{=} => ruby-1.8.7-p302 > pattern.inspect => "/=/" ruby-1.8.7-p302 > "abc=xyz" =~ pattern => 3 Maybe I'm not understanding your issue? -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan