2

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?

Gopi
  • 10,073
  • 4
  • 31
  • 45
MushinNoShin
  • 4,695
  • 2
  • 32
  • 46
  • Please upvote the Case Preservation Search & Replace feature request for Visual Studio at this link: https://developercommunity.visualstudio.com/idea/580810/case-preserving-search-replace.html – thecoolmacdude Dec 11 '19 at 20:03

1 Answers1

2

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

Community
  • 1
  • 1
Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480