Woah, Nellie.NET!

From my simple mind to… mine…

The Regulator

leave a comment »

I had the recent pleasure of working with The Regulator, a regular expression tool for building and testing your regular expressions against various text inputs (thanks, Jason, for the intro). It’s a great tool and helps to speed up the development of your regular expressions.

In the default view, you enter your regular expression in the upper portion of The Regulator:

image

In this case, the regular expression can be used for finding the password entry in a connection string. 

In the lower portion, you can enter text examples:

image

And from here, you can click on the “Match” button, where you will see how the text input matches to the regular expression. Certain text inputs may not match – which may or may not be a good thing depending on what you expect. 🙂

image

Of course, all the samples that you have entered make for great unit tests, since you know how they will match, based on The Regulator results.

If something changes, the tests will break:

image

Advertisements

Written by Nelson

September 4, 2007 at 5:43 pm

Posted in .NET, RegEx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: