From: matz@... (Yukihiro Matsumoto) Date: 2001-04-25T16:45:17+09:00 Subject: [ruby-talk:14204] Re: gsub and literal strings Hi, In message "[ruby-talk:14203] gsub and literal strings" on 01/04/25, Joel VanderWerf writes: |Question: why doesn't gsub distinguish between a string and a regexp in its |first argument, whereas []= does? How about "foo $x baz".gsub(Regexp::quote('$x'), 'bar')