Subject: gsubbing ' to \'
From: "Kurt M. Dresner" <kdresner cs.utexas.edu>
Date: Mon, 18 Aug 2003 07:15:16 +0900
I was trying to escape some apostrophes with gsub. The only way I could
get it to work is by doing:
result.gsub!(/'/) {%q!\'!}
There has got to be a better way than this. What was I doing wrong?
-Kurt