Tuesday, May 19, 2009

Using the Visual Studio Editor Regular Expression Search/Replace

I always forget this so I'm saving it here

If you want to save a string and then use it in the replace box put a {} around it.  Then you can refer to it using \1 or \2 (depending on how many curly brackets you put.

Ok, if you want more info you can check out the three part tutorial.


Or this site which compares it to regular regex.

No comments: