views:

27

answers:

1

VS2008 allows you to use regular expressions in the find/replace dialogs.

I've run into a couple of moments where 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?

+2  A: 

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

Leniel Macaferi
First link pretty much explains it all
Aaron D
First sentence explains it better than any of the links.
MushinNoShin
There really should exist something like this in the Find and Replace dialog. It's a time saver.
Leniel Macaferi