Here's a nice little _expression_ I use.
var chkEmail=
/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{
2})?)$/i;
if ((form.Email.value.length 6 ) || (chkEmail.test(form.Email.value) ==
false)) {
var msg= Email address entry error!\n\nPlease a valid email
This regex was intended to be used with a case-insensitive regular
_expression_ checker.To make it case insensitive, there are two things
you'll have to do.
replace a-z in brackets with a-zA-Z
replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE
CAPITALIZATION POSSIBILITY.
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote:
replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE
CAPITALIZATION POSSIBILITY.
Or alternatively, don't bother checking the TLD against a static list, because
eventualy a new one will crop up, and you'll wind people up who have
I use:
^[a-zA-Z]([.]?([[:alnum:]_-]+[.]?)*[[:alnum:]_-])?@([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$
which, admittedly, won't allow .museum addresses, but will match most
common emails.
--Ben Doom
Thomas Chiverton wrote:
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote:
replace each of aero, coop,
4 matches
Mail list logo