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.
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.
Отличное расширение! Кстати, было бы здорово добавить несколько темплейтов основных регекспов и мультитабность для тестирования в одном окне сразу нескольких регекспов.
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
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.
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!
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?
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?