Regular Expression Example
Here i am providing some useful regular Expression which are acceptable by most of the web developers. I have found them in web.
Email Address validation
Expression: ^.+@[^\.].*\.[a-z]{2,}$
| Description: | Most email validation regexps are outdated and ignore the fact that domain names can contain any foreign character these days, as well as the fact that anything before @ is acceptable. The only roman alphabet restriction is in the TLD, which for a long time has been more than 2 or 3 chars (.museum, .aero, .info). The only dot restriction is that . cannot be placed directly after @. This pattern captures any valid, reallife email adress. | |
Date and Time
Expression: ^\d{1,2}\/\d{1,2}\/\d{4}$
| Description: | This regular expressions matches dates of the form XX/XX/YYYY where XX can be 1 or 2 digits long and YYYY is always 4 digits long. | |
You can have more information about RegX in the following site: http://regexlib.com/DisplayPatterns.aspx?cattabindex=1&categoryId=2
[####]
The accessible web design is absolutely essential for web development as well as the type of web server and the reliability of website hosting, before you launch your web design.

Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks