The argument to this method is the email address you want to validate.
Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications.This is building on my previous post on how to use regular expressions with j Query. Update 12/05/13: Separated into versions for testing.//reported to validate incorrectly: [email protected] as true /[A-Z0-9._% -] @[A-Z0-9-] .Most email validation checks assumes that the top level domain can have up to 4 characters. You have just validated the format – not its existence.
The only way to truly validate the email address is to send an email to that address and request the user to confirm by clicking on a unique link (or entering a confirmation code)Remember, if the user’s intention is to enter an invalid email address, she can do it so easily whether you have the most tough validation or not.I would like to have feedback from my blog readers.