Is there a way to copy the case of a character and impose it on some other character in output?
VS2008 allows you to use regular expressions in the find/replace dialogs.
I've run into a couple of moments 开发者_StackOverflowwhere I've needed to copy the case of a specific character and impose it on the replace string.
For example I have a block of code that has Monday and monday scattered throughout. I want to change each Monday to a Friday as well as each monday to a friday.
Is this possible?
This is not possible using the built-in Visual Studio Find and Replace window dialog.
Case preserving find/replace in Visual Studio
find and replace preserving case sensitivity
精彩评论