var emailReg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
This is my regular expression . it accepts the email such as
name.name_@__domain.in
How can i format my regular expression which accepts only a valid email format only. I need the email validation for above example.it is not a duplicate one.
var emailReg= /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
the expression you prefer accepts ...name@domain.com
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.