Visual studio quick tip – using regular expressions in search

How much time do you spend picking or searching through your code? Looking for things and trying to remember where stuff is. I was talking with someone the other day and realized that they weren’t aware they could use regular expressions within Visual Studio search. In this blog post I’ll take a quick look at how this is done.
Let’s say that we want to search and find words like viewbag or View in the current document.
  1. Within Visual Studio select CTRl+F, in the search dialog enter v.e, click the Use regular expression dialogue and then click Find next as shown in the following screenshot.

2. Validate that you can see the selection shown in the following screenshot

Looking for more information on regular expressions? A great article is available here.
Share this article on   LinkedIn Google+

Thomas Robbins

I spend my time working with partners and customers extending their marketing and technology to the fullest.