If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

If you want to take account of domains .museum and .travel change {2,4} to {2,6}.

Of course, that does not ensure that the email address entered by the user is actually correct. There may be spelling errors. me@gmial.com You can improve the chances of that by requiring that the email address is entered twice, and check that the two match.

yes, there are lots to choose from, but having one that works for all is what i would really like. I do not mind if the email is not a real one, 235d3tg@sjeud.cpw

just so it has what it should have the @ and a .

no matter what characters are before the @ (even if it is 123.456@789.654, or 654.ert@76531.sorud) then more characters then a DOT then more characters. But as long as it only has one @

as long as it is formatted like an email should be then this would do.

Here's a simple validation script that covers most cases including the gTLD cases I just mentioned. It should allow every email format that doesn't involve quotation marks (like "email address"@domain.tld, which is technically a valid format though not used).