I've following regular expression: ([A-Za-z0-9.-])\@([a-zA-Z0-9-]{1,63})(.([A-Za-z]{2,6})) and validate test@gamil.com and test@gamil as well. While it must validate test@gmail.com and the email with the sub-domain.
Any help is there to make me correct.