From: Hassan Schroeder Date: 2013-01-18T00:43:35+09:00 Subject: Re: Escaped backslashes in input strings - newbie question On Thu, Jan 17, 2013 at 1:23 AM, Carlo E. Prelz wrote: >> If, at IRB, I write: x = "\b99m\BTc" (not \u which gives an 'invalid >> Unicode escape') Which is because the string is being interpreted due to being wrapped in double quotes; on the other hand, 1.9.3 (main):0 > '\u99m\UTc'.gsub(/\\./,"") => "99mTc" 1.9.3 (main):0 > seems to work just fine :-) -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan