Super Easy Email Validation AS2

I needed a quick and easy way to check for the basics of an email address.

Does it contain “@” and “.” symbols.

This is by no meals a foolproof method, so don’t use it for anything big, but if you want to just do a quick test then here you go:

var email:String = "name@server.com";

if (email.indexOf("@")!=-1 && email.indexOf(".")!=-1) trace("false");
else trace ("true");


Share This Article

Related Posts

Comments

There are no comments on this entry.

Trackbacks

There are no trackbacks on this entry.

Add a Comment

Required

Required

Optional

Latest Domains

1. teledyne.com
(6 hours ago)
2. ngtechonology.com
(7 hours ago)
3. nonude.in
(7 hours ago)
4. spicyhunt.com
(13 hours ago)
5. whpromotions.co.uk
(16 hours ago)
6. seslihome.com
(17 hours ago)
7. sesliislam.com
(20 hours ago)
8. woopra.com
(1 day ago)
9. wapdam.com
(1 day ago)
10. 193.105.134.194
(1 day ago)

Services

PHP MySQL Apache Flash Air Java C++ Python