How to do a search and replace in Visual Studio with Regular Expressions
1 min read
I just removed the word “test” from all of our test method names. Here’s how I did it:
![]()
Find what: public void {.*}test
Replace with: public void \1
Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.