Ooops. Spoke too soon. The workaround doesn't.

"xyz#abc".gsub("#","\\043") =>  "xyz#43abc"

-- 
Posted via http://www.ruby-forum.com/.