First lets see the code Now the explanation /^([a-zA-Z0-9_\.\-])+\@+([a-zA-Z0-9\-]{2,})+\.+([a-zA-Z0-9\.]{2,6})$/ ^[a-zA-Z0-9_\.\-] = Matching the beginning of the stringAny character from a-z, A-Z, 0-9 and . – _ \@ = @ [a-zA-Z0-9\-]{2,} = Any character from a-z, A-Z, 0-9 and –Number of characters should be at least 2There are no upper limit on number of characters \.… Continue reading Javascript Email Validation With Regular Expression