Home > Visual Studio > Visual Studio – Find using Regular Expressions

Visual Studio – Find using Regular Expressions

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

 

 
Advertisements
Categories: Visual Studio
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: