From: Jos Backus Date: 2002-01-30T05:19:03+09:00 Subject: Re: problems with string interpolation On Wed, Jan 30, 2002 at 03:01:15AM +0900, ts wrote: > Well you have 2 steps with this construct > > s.gsub(%r{([^A-Za-z])}, '\\\\\1') > > 1) when ruby compile the script, it create a String with the second > argument at this step the string created is > > '\\\1' Slightly off-topic: what's confusing for me personally here is that in a certain P language which I also happen to (have to) use, unlike Ruby, backslashes are _not_ substituted in single-quoted strings. -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;