coding practices - Part 5 (Regulator)
Reply
![]() |
|
|
From:
Anand Kumar
|
Hi Group, Today I am covering Regulator tool.
It allows you to build and verify a regular _expression_ against any text input, file or web, and displays matching, splitting or replacement results within an easy to understand, hierarchical tree other way regular expressions are used to define patterns in strings based on characters, frequency, and character order. They are most commonly used as a means to validate user input or as a way to find a string of characters inside a larger string�for instance, when looking for a URL or e-mail address on a Web page. Regulator allows you to enter a regular _expression_ and some input against which you would be running this _expression_. This way you can see how the regular _expression_ will act and what kind of matches it will return before implementing it in your application.The attachment shows example [0-9]* which should match any number of digits in a row. The box in the bottom-right contains the input for this regular _expression_, and the box on the bottom-left shows the matches that this regular _expression_ finds in the input. The ability to write and test regular expressions in a separate application like this is much easier than trying to work with them in your app.One of the best features in Regulator is the ability to search the online regular expressions library at regexlib.com. For example, if you enter the string "phone" in the search box, you will find more than 20 different regular expressions that will match various phone numbers, including expressions for UK, Australian, and many other phone numbers. Regulator was written by Roy Osherove and can be downloaded at http://royo.is-a-geek.com/regulator.
Cheers Anand http://spaces.msn.com/members/anandkumar |
|
View Attachment(s) |
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|