On Wed, Feb 2, 2011 at 10:19 AM, Bob Hatch <roberth / monavie.com> wrote:
> I have the following variable. Ruby looks at the =3D sign as a regex
> literal and I need it to be recognized as text.
>
> search_text =3D! %r{
> =A0=3D
> }x

ruby-1.8.7-p302 > pattern =3D %r{=3D}
 =3D>
ruby-1.8.7-p302 > pattern.inspect
 =3D> "/=3D/"
ruby-1.8.7-p302 > "abc=3Dxyz" =3D~ pattern
 =3D> 3

Maybe I'm not understanding your issue?

--=20
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
twitter: @hassan