Archive

Archive for the ‘Visual Studio’ Category

Visual Studio – Find using Regular Expressions

September 23, 2010 Leave a comment
Most of the times we using Ctrl+F (Find) feature in Visual Studio with commen Find options like "Match case", "Match Whole Word"…
But rarely we use option "Use by Regular expression" (Need to ckeck Use and select Regular expression / Wildcard).
 
 
 
Recently I started using this, and found it is very useful. Here are the few examples…
  1. <pra – Find words start with "pra"
  2. deep> – Find words ends with "deep"
  3. <p[a-z]+deep> – Find words which starts with "p" and ends with "deep"

I agree, these are very simple examples… but I hope it is useful introduction.

References:
http://msdn.microsoft.com/en-us/library/2k3te2cs(VS.80).aspx
http://blogs.msdn.com/b/saraford/archive/2007/11/02/did-you-know-how-to-use-wildcards-and-regular-expressions-while-searching.aspx

 

 
Categories: Visual Studio