[email protected] – “.a” is not a valid tld, last tld must contains at least two characters 4. mkyong()*@– email’s is only allow character, digit, underscore and dash 8.
[email protected]– email’s first character can not start with dot “.” 7.
Using regular expressions the entered content can be validated with advanced conditions like the string entered shouldn’t contain spaces, special characters, numbers, uppercase or lowercase etc.
Once you learn the art of using regular expressions you can use it with many computer languages.
A while ago I put up a Password Strength Checker using Java Script and Regular Expressions.
On that same note, you can also check the structure of an email address utilizing the same regular expression (regex) methodology.