Aha! Regexp.escape.

I'm still puzzled by the different semantics of String#[]= and gsub, though.

Joel VanderWerf wrote:

> 
> How do you do a global string substitution when the pattern string is
> given and may contain characters like $ * and so on?
....

-- 

Joel VanderWerf
skeeler / sirius.com