Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to do some basic regex Quick Replace operations in Visual Studio 2010, but when I use regex grouping I don't get Tagged Expressions (ie. \1 \2 etc.) returning their values, instead they are blank.

For example:


int a = int.Parse("10");
int b = int.Parse("20");
int c = int.Parse("30");

Search Pattern (regex enabled)




Replaced Text

int a = ;
int b = ;
int c = ;
share|improve this question
up vote 3 down vote accepted

(, ) don't create a tag in Visual Studio, its regular expressions use {,} for its tagging. Use this are you search pattern:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.