Regulator
Regulator is the last added to my first-class tool list. It is a distinctive tool that makes it easy to generate and test regular expressions. People are interested in regular expressions because they are well supported in the. NET Framework. Regular expressions are used to define the pattern in a string based on characters, frequencies, and character sequence. They are most commonly used as a means to verify the validity of user input or as a method to search for strings in a large string-for example, searching for URLs or email addresses on a web page.
Regulator allows you to enter a regular expression and some input content for running the expression. In this wayProgramBefore implementing this regular expression, you can understand what it will produce and what types of matches it will return. Displays the regulator with a simple regular expression.
This regular expression is included in the document-in this example, it is [0-9] * and should match any number of numbers in a row. The lower-right box contains the input for this regular expression, while the lower-left box shows the matching items found in this regular expression. Writing and testing Regular Expressions in such a separate application is much easier than trying to process them in your application.
One of the best functions of regulator is to search for the online Regular Expression Library in regexlib.com. For example, if you enter the string "phone" in the search box, you will find more than 20 regular expressions that match different phone numbers, including expressions used in the UK and Australia and many other phone numbers.
Regulator is written by Roy osherove and can be downloaded from the http://royo.is-a-geek.com/regulator.
Go to the. NET programmer's ten essential tools-directory