Click here to Skip to main content
Click here to Skip to main content

RegExTest: Regular Expression Tester

By , 6 Aug 2003
 

A few words

Just a few words for this article, since the title is self-explanatory: RegExTest allows you to test your regular expression statements against an arbitrary text.

I've developed this really simple tool, just because I needed a simple and fast way to test my regular expressions without the need to recompile each time my project; understanding how a regular expression operates, just "reading" it and trying to imagine what it will do is not so simple when you have long expressions and, obviously, testing them can help to avoid silly bugs.

Probably, the most interesting thing is that it supports the grouping functions, so that you can also check that your grouping statement functions are as you expect.

Sample screenshot

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

ManOwaR
Web Developer
Italy Italy
Member
Born in 1977, works as a freelancer, focusing on Database / Software Architecture.
In the free time writes articles for two of the major Italian programming magazines (Computer Programming and VBJ) and also develops nice and useful programs.
His major interests and skills are the .NET framework (C# in particular) and SQL Server.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
NewsThere's a new version of the RegEx Tester Tool !memberBucanerO_Slacker1 Mar '08 - 23:43 
I have released a new version of the RegEx Tester tool. You can download it free from http://www.codeproject.com/KB/string/regextester.aspx and http://sourceforge.net/projects/regextester
 
With RegEx Tester you can fully develop and test your regular expression against a target text. It's UI is designed to aid you in the RegEx developing. It uses and supports ALL of the features available in the .NET RegEx Class.
Generalcryptic variable namesmembersmallguy7822 Jan '04 - 0:01 
int[] ag = re.GetGroupNumbers();
 
foreach(Match m in mc) {

 

GeneralRe: cryptic variable namesmemberManOwaR22 Jan '04 - 3:22 
and the question is....?
 
-=ManOwaR=-
 

GeneralRe: cryptic variable namesmemberJon Rista13 Sep '07 - 5:18 
Question is: Why the use of cryptic variable names?
Expected answer: There shouldn't be, its bad practice, hard to follow, hard to maintain, yadda, yadda, blah blah...
GeneralAnother RegEx TestermemberWesner Moise7 Aug '03 - 14:06 
In addition to Expresso, I believe that Chris Sells has his own Regular Expression Tester as well as a String.Format tester.
 

GeneralRe: Another RegEx TestermemberWesner Moise7 Aug '03 - 14:08 
We could keep going...
 
You know, we could keep going as I see it...
 
TypeConverters
==============
These exist allready...
 
GDI
====
Pen style tester
Gradient tester
Brush tester...
StringFormat (for DrawString) tester
 
Controls/Forms
==============
various properties (although you can test it through the design view as well)
 

GeneralExpressomemberJonathan de Halleux7 Aug '03 - 5:02 
Did you try Expresso[^]
 
Jonathan de Halleux.

GeneralRe: ExpressomemberManOwaR7 Aug '03 - 5:23 
Nope, i've never hear of that progs, nor find it using search engines. Frown | :-(
 
Anyway thanx for notifying me it. I've look it and seems to be the final word in matter of regular expression testing!
 
Mine project is a lot more simple....more "direct"...maybe it will be useful tu someone anyway (perhaps to all that do not need a so extensive support of all Regular Expression options) Smile | :)
 
-=ManOwaR=-
 

GeneralRe: ExpressomemberJonathan de Halleux7 Aug '03 - 5:27 
ManOwaR wrote:
it will be useful tu someone anyway (perhaps to all that do not need a so extensive support of all Regular Expression options)
 
It has been useful to you at least, to learn regular expr. Smile | :)
 
Jonathan de Halleux.

GeneralRe: ExpressomemberManOwaR7 Aug '03 - 5:31 
ehehe, yes, this for sure Big Grin | :-D
 
-=ManOwaR=-
 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 7 Aug 2003
Article Copyright 2003 by ManOwaR
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid