Using standard .NET Regex in Visual Studio's Find dialog

360 views Asked by At

As most of you probably know, the regular expressions used in Visual Studio's Find dialog are not the same as .NET Regex. This is a major PITA to me, and I often resort to external tools to search my code with regexes.

So, I have two questions:

  • Why on earth did the VS team introduce yet another new, non-standard regex syntax? Couldn't they use the existing .NET Regex class? I can't think of any good reason for this...
  • Is there a VS extension out there that would allow me to use the standard regex syntax in the Find dialog?

EDIT: I found two related suggestions on Connect:

The second one is actually more interesting, since it would provide an extensible solution...

There are also a few VS2010 extensions (like this one) that allow searching with regexes, but none of them integrates into the standard Find dialog, and they don't have the "find in files" feature.

1

There are 1 answers

5
Damien_The_Unbeliever On BEST ANSWER

Visual Studio 6 has Find & Replace using Regular Expressions. As such, it would be difficult for it to use a future product/framework to perform such a search