coding/short code

javascript 이메일 형식 체크하기

100a 2019. 6. 11. 15:08
function Email_Check(email){
	var emailPattern =/([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
	return emailPattern.test(email);
}