Below regular expression for email validation,
^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$ Here I couldn't understand the [\w\.-] purpose. Can any one please let me know?
Use this pattern,
If I give [email protected] in a email field, validation becomes fail. In email string before @ if just one character or numeric comes the validation become fail. Is this right?
Regards, karthik