Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Possible Regexp documentation bug: msg#00008

Subject: Re: Possible Regexp documentation bug

On Jul 15, 2007, at 11:40 , Chris Wilson wrote:

I guess that str =~ Regexp.new(Regexp.escape(str)) is correct?

Yes, this is the real bug in the doco. =~ used to be happy with strings as patterns and that is no longer the case with 1.8.x. The rest of it (associativity and such) is unnecessary.





<Prev in Thread] Current Thread [Next in Thread>