From: Xavier Noria Date: 2010-01-14T02:57:40+09:00 Subject: Re: Ruby Regex On Wed, Jan 13, 2010 at 6:49 PM, Marnen Laibow-Koser wrote: > It has nothing to do with encoding.  It's a question of a particular > point of stupidity in Ruby's parser and/or String class. I don't understand your point. The backslash is a special character in string literals. If you want to include one you need to escape it. That's pretty normal. What's your complain about parsing? This gotcha is related to gsub's contract, nor to rules for string literals themselves.