I think the answer is is Python
I assume you guys are talking about the regex search and replace while doing a conversion.
I am hitting the same problem - except in my case I am matching on text which is in bold, and I want to make it upper case.
If this Search/Replace is based on Python, why can't we use the Python function:
in my case it would be (\1).upper(), since \1 is the match group from my regex.