>>>>> "J" == Jos Backus <josb / cncdsl.com> writes: J> 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' J> Slightly off-topic: what's confusing for me personally here is that in a J> certain P language which I also happen to (have to) use, unlike Ruby, J> backslashes are _not_ substituted in single-quoted strings. Can you give me the name of this P language ? I hope this is not pigeon% perl -l print '\\\\\1' ^D \\\1 pigeon% Guy Decoux