Regex Tester

Free

Regular expression tester for Visual Studio 2010, 2012 and 2013.

(25) Review
Visual Studio
2013, 2012, 2010
Download (56,738)
8/21/2013
1.4.2
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (25)
Q and A (9)
Sign in to write a review
Sort by:

by cuscutis | May 05 2014

My only complaint is the autorun doesn't trigger on changing the input text, only when changing the regex itself.

by Mark Good | March 18 2014

by Giovanni Caputo | November 15 2013

There are problems with groups, in Tester must be specified with "[" and on code auto generated that are nor convert to "{" and so replacement of group does not work!

by ShaKann | October 29 2013

Nice tool :) I am using it a while and it saves me a lot of time :) But... There is only one problem but it is very, very irritating for me - in replacement pattern I can't use groups. I use Regex replacement a lot so it is quite big problem for me. All group indicators like "$1", "${groupName}" are simply ignored. When I run code created by your tool in C# everything is OK but in output window I see "$1", not captured group. Simple example:

string pattern = @"(?<firstName>[\w\d]*) (?<secondName>[\w\d]*),";
RegexOptions regexOptions = RegexOptions.None;
Regex regex = new Regex(pattern, regexOptions);
string inputData = @"FirstName1 SecondName1,
FirstName2 SecondName2,
FirstName3 SecondName3,";
string replacement = @"${firstName}";
string result = regex.Replace(inputData, replacement);

Normally it will produce this kind of output:
FirstName1
FirstName2
FirstName3

In your tool I have:
${firstName}
${firstName}
${firstName}

Is this intended? In most of the cases I want to see real output, not placeholders. I don't see any option to turn on normal behavior. I am using VS 2012 and Regex Tester version 1.4.2

Roman Kurbangaliyev October 29 2013
| Edit |
Delete

Use square brackets, sample: $[firstName] or $[1].
You may read tooltips in the text fields.
Please, change your rating, if this information fixed a your problem.

by T. Hanazaki | October 25 2013

by astr0wiz | August 26 2013

It pops up now. Thanks

Roman Kurbangaliyev August 27 2013
| Edit |
Delete

Thanks for your review and change rating.

by Milo D. Cooper | July 03 2013

Installed, where is it? I select View -> Other Windows -> Regex Tester, nothing happens. (VS 2010)

Roman Kurbangaliyev August 18 2013
| Edit |
Delete

I am install Regex Tester on VS 2010.
It's worked http://img843.imageshack.us/img843/5206/7ma.png
Are you restart VS 2010 after install extension?

EDIT 2013.07.23:
Try in VS 2010 after upgrade tool for fix yours problem click on command in main menu "Window -> Reset Window Layout".

EDIT 2013.08.19:
I fixed support VS 2010. Please check it.

by Binori | October 17 2012

by Carlos Adriano Portes | July 29 2012

by GermánMC | April 07 2012

Great tool. Is useful for me that I'm learning Regular Expression.
Thanks for develop this tool =).

by Code Chief | April 05 2012

Great and essential considering the MS provided Regex extension doesn't open independently or on anything other than a Regex class. This tool is easy to access and provides all the necessary features to build expressions whilst programming.

by Margriet Bruggeman | February 21 2012

Always good to have

by Guillaume Venturini | January 30 2012

good but it seems not working with ^ and $ caracters and the multiline option activated :

Match regex : ^(100|[0-9]{1,2}(?:[.,][0-9]{1,10}){0,1})$
option multiline
input text :
90,00
11
103

output : nothing

I must remove $ to have something in the output field. It's not really what I espected.

Roman Kurbangaliyev February 02 2012
| Edit |
Delete

Thank you for comment.
I used standard Regex class in C# code.
RegexOptions.Multiline property does not do what you think.

Here is answer:
http://stackoverflow.com/questions/7815063/multiline-regex-works-in-regexbuddy-and-online-tester-but-doesnt-work-in-c-sh

I changed you regex on:
^(100|[0-9]{1,2}(?:[.,][0-9]{1,10}){0,1})(?=\r\n|$)
It's worked with Multiline option.

by Andre.Ziegler | January 19 2012

good work, thanks :)

by Denis Kurbangaliev | January 08 2012

It's simple and useful tool. Thank you.

by 柳永法 | December 04 2011

good

Hope to add functionality:
1. real time process, not click
2. generation of various scripting functionality, such as: JS, VBS, c#, vb.net

by Nicolas Plourde | October 30 2011

by Andrei Csibi | August 31 2011

A better formatted results window would be a good improvement but for now the tool is very useful.

by Yasin Öner | July 21 2011

by Sinvicta | March 09 2011

I'm sure that there will be better Regex Testers at some point, but this does work. It provides for groupnames, Multiline/Singleline, case insensitive, etc. options and will show replacement string results. I see no problems with it and am thankful to have an integrated (free) tool.

1 - 20 of 25 Items   
Sign in to start a discussion


  • Autorun on VS2010
    1 Posts | Last post May 05, 2014
    • The autorun doesn't run in VS2010 if I change the input text, only if I change the regex. 
      It would make testing much easier if changes to the input text also triggered the autorun.
  • Uses Shell 10
    3 Posts | Last post August 18, 2013
    • This only works for 2010 if you have 2012 installed as it references "Microsoft.VisualStudio.Shell.10.0, Version=11.0.0.0".   I'm not able to install 2012 at this time, any chance you could use shell.9 for use vs2010 only users?
    • Thanks for your feedback, I will check this case and write answer.
    • I fixed this problem. Please check this fix on your environment.
  • Captured Groups
    3 Posts | Last post June 09, 2013
    • Where/How does it show capture groups? Especially named groups?
      
      For example,
      Regex: <img\ssrc='(?<imagePath>/static/product_images/med/.+\.jpg)'>
      Input: <img src='/static/product_images/med/311-9836.jpg'>
      I should see a result that it matched the whole line and the captured group part (under its name)
      Results:
      <img src='/static/product_images/med/311-9836.jpg'>
      [imagePath] "/static/product_images/med/311-9836.jpg"
      
      I can only see the first result.
    • As a further example of what I'm talking about, plug this into RegExr
      http://www.gskinner.com/RegExr/ that page will list captured groups below the main match
    • Sorry, I forgot answered on you question.
      For your case input in field "Output format" value: $[imagePath]
      This is feature displayed in tooltips.
  • Save presets
    2 Posts | Last post February 27, 2013
    • Please add ability to save presets.
      Thanks.
    • Sorry, I was busy :)
      I returned again to work on this tool.
  • Issue with Regex Tester vs. VS2010 behaviour
    2 Posts | Last post May 08, 2011
    • I have the following RegEx = ^(-{0,2}|/{0,1})(([0-9_]*[A-Za-z]+[0-9_-]*)+)(\b[^:,.=])([+-]?)  In VS C# Code it does not produce the same results. E.g. /debug or 12debug12 are not recognized in VS but in Regex Tester they are. Any idea? Same with other RegEx as well. Can mail a small test c# program if required.
    • Sorry, I didn't see the notification about your question.
      May be the problem in RegexOptions
      http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions.aspx.
      I think you had a small problem.
  • Port to VS2008
    4 Posts | Last post December 28, 2010
    • Can you portage you extension to MSVS 2008?
    • Yes, I can do it. Please wait one week.
    • Tool ported on Visual Studio 2008, it's here http://visualstudiogallery.msdn.microsoft.com/en-us/0e443876-776b-4784-b3d7-f13740c387b4.
      Thanks you for your interest!
    • Thx. It works very well!
  • Does not seem to work?
    2 Posts | Last post November 11, 2010
    • I took a snippet of working C# code:
      Regex xEin = new Regex("\\[[0-9]*\\]");
      Match me = xEin.Match(s);
      
      And tried your tester with
      Match RegEx:\\[[0-9]*\\]
      Result Format:
      Input Text:test [11] stuff
      
      Clicked Process and the Results were blank. What am I missing here?
    • try "Match RegEx":
      \[([0-9]*)\]
  • Highlighting matches
    2 Posts | Last post August 27, 2010
  • named/numbered group replaces?
    2 Posts | Last post August 27, 2010
    • I dont quite understand your result/replace format
      Using match = "\w(?<amount>\d+)\w" and result format = "${amount}" i dont get any substitution for my groups. 
      How do I get numbered or named groups substituted in the result?
      
    • Use square brackets, sample: $[name_group] or $[number_group].