if an email is in the format
coditions to check via the regex :
email has only 1 @
firstname.lastname
at the very end its either a .com or .net or .co.in
it should not accept emails like [email protected]
but should accept [email protected] or tcs.co.in
var empmail = '[email protected]'
var fullName = empmail.split('@')[0].split('.');
var firstName = fullName[0];
var lastName = fullName[ fullName.length-1 ] ;
var fullName = empmail.split('@')[0].split('.');