in reply to Case-sensitive substitution with case-insensitive matches

chipmonk, your solution gave me chills.... In my perfect universe, this would be the kind of stuff that would impress chicks. Bravo.

I was basically doing what runrig suggested, but runrig's code is smaller and more idiomatic -- good for me to see, especially since I will have to pass on chipmonk's solution because of the limitations runrig mentioned.

Thanks to all!