开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜