开发者

Is there a way to copy the case of a character and impose it on some other character in output?

开发者 https://www.devze.com 2023-01-15 13:48 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消