From: Kyle Schmitt Date: 2007-07-20T22:45:35+09:00 Subject: Re: regex backreference weirdness... I completely, and utterly forgot about the block form of gsub. Perfect. Thanks everyone! But it does make me wonder, for the non block form, when you use the \1 variable, I can see how to use it inside of other strings, but how would you go about running other methods on it? In this case upcase. Or is there no way? As far as re-inventing the wheel, it's important to know the hows and whys, even if you don't end up implementing it yourself :) --Kyle