On Wed, Feb 2, 2011 at 1:37 PM, Jeremy Bopp <jeremy / bopp.net> wrote: > On 2/2/2011 12:19 PM, 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 > > You have a typo in your code sample here, and the message you see as a > result is: > > warning: regex literal in condition > > That is because of the =! you have. ¨Βυββςεαλσ τθατ δοχξ ιξτο αξ > assigment (the = part) and a boolean negation (the ! part) of the > following regexp. ¨Βου ξεεδ το γθαξηε τ轑 το κυστ ασ ζομμοχσΊ > > search_text = %r{ > > } I think he meant to use =~ instead.