Visual Studio 2010 Gallery – RegEx Editor


Regular expressions provide a concise and flexible means for identifying strings of text, such as particular characters, words, or patterns of characters.  A regular expression  is a special text string for describing a search pattern.

For example, the following RegEx will validate a USA telephone number with the format of "1-NNN-NNN-NNNN"


So, in this example, a value of "1-800-555-1212" will pass; "555-1212" will fail.

Now, you can the ability to develop and test your Regex expressions INSIDE Visual Studio 2010. It’s and one of the many, many awesome extensions provided for our latest IDE.  Here is a screen shot of the editor:


This sample was built to ease your pain when working with regular expressions.  It rehosts the editor in a dialog box and provides a basic language service to provide colorization, brace matching, sample testing grouping and selection tracking.  It shows re-hosting of the editor in a tool window, and provides a nice starting point for similar projects.

Check it out at:

Technorati Tags:

kick it on Shout it

Comments (6)

  1. Miguel says:

    No way to find how this extension works.

    There is no button to popup the app, neither the app popup when im writing the regular expression.


  2. Marcel says:

    Same here … didn't figured out how to use it yet

  3. Marcel says:

    same here… didn't figured out yet how to use it.

  4. Dmytro says:

    >>No way to find how this extension works.

    Just write:

    Regex r = new Regex(

    and wait for a couple seconds until the dialog box pops up.

  5. Chris says:

    Is there another way to get the editor? It won't pop up in my installation of vs2010. I think it collides with another installed extension.

    So why not have a button or some kind of hotkey?

  6. Chris says:

    Okay. Here is the solution. Add a new Regex("D"); to the SourceCode, and then CTRL+Click the "D" – the editor will pop up.

    But there's still a problem preventing me from using it: The tool can handle a German / or other key board layout – I can't add any braces as I normally would. That's sad, because the tool seems to be pretty cool.

Skip to main content