Thanks for the response. Is there a way to do this without a regular
expression? To further explain, I want the program to be able to do any
kind of literal string replacement at runtime, except that case is
ignored. If I use a regular expression as the match string, then
certain characters could be interpreted in special, non-literal ways,
which is not what I want in this case.