From: ts Date: 2003-07-24T01:59:46+09:00 Subject: Re: String substitution without RegEx >>>>> "W" == Wesley J Landaker writes: W> Apparently, Andreas Schwarz recently wrote: >> irb(main):004:0> "foo.bar".gsub( /#{Regexp.escape(".")}/, ^^^^ W> irb(main):002:0> s['.'] = '.\1' ^^^^^ You don't do the same : he want to use #gsub not #sub Guy Decoux