From: Phil Cooper-king Date: 2010-01-08T22:07:01+09:00 Subject: Re: Stopping String Escaping. :) I was just reading on them, well I wont forget this mistake quickly. The easy solution is to use the block form of sub instead. >>> puts "abc".sub(/b/) { "\\\\" } > a\\c yep worked like a gem :D > You could simplify your code if you rewrote to use the block form of > gsub anyway. I'm having to loop through the code blocks in order to parse the syntax with Uv anyway. though that while I was in the loop I may as replace each code block as its parsed. thanks for your effort, you've been a great help. -- Posted via http://www.ruby-forum.com/.