Form Validation and Regular Expressions

Validate form fields with Regular Expressions

Regular Expression:
/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/

Example 8.6
Example 8.6 Source:
In example6.js
In head element:
Example 8.6 Demonstrated