From: Ryan Mcdonald Date: 2007-06-07T09:06:26+09:00 Subject: Re: Error when substituting a backslash in a string >> p a.sub('\', '') >> > > On that last line, your backslash is escaping the single quote and > causing parsing lossage. so.. sometimes escaping happens within single quotes, and sometimes it doesn't? a = 'yo\n' # doesn't escape feels like this should escape: p a.sub("\\", '') and this shouldn't: p a.sub('\\', '') one more thing to remember I guess.. :-) -- Posted via http://www.ruby-forum.com/.