From: ts Date: 2003-07-23T02:01:48+09:00 Subject: Re: String substitution without RegEx >>>>> "A" == Andreas Schwarz writes: A> I would still need a function to remove backreferences from the A> replacement string. It's possible, of course, but it hurts me that I A> have to use such "hacks" for a simple substitution. Perhaps with Regexp#escape svg% ruby -e 'p "[]{}".gsub(/#{Regexp.escape("]{")}/, Regexp.escape("\\1"))' "[\\1}" svg% Guy Decoux