# Email Validator

**URL:** <https://forum.kirupa.com/t/email-validator/174043>\
**Category:** open source\
**Created:** [January 2, 2006, 8:27am UTC](https://forum.kirupa.com/t/email-validator/174043 "2006-01-02T08:27:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bootiteq](https://avatars.discourse-cdn.com/v4/letter/b/eb9ed0/32.png) [@bootiteq](https://forum.kirupa.com/u/bootiteq)\
**Post date:** [January 2, 2006, 8:27am UTC](https://forum.kirupa.com/t/email-validator/174043/1 "2006-01-02T08:27:25Z")

</div>

If this saves you from having to something boring like this yourself then - well - cool!

easiest email you can get away with is “a@a.a”

any suggestions welcome.🙂

edit: added a swf

edit2: and heres a link to another one  
[http://www.actionscripts.co.uk/tutorials/poab/poab03/email\_validation\_tute.htm](http://www.actionscripts.co.uk/tutorials/poab/poab03/email_validation_tute.htm)

edit3: discovered a simple javascript way which creates an alert popup which someone may find useful  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#808080]_// FromName, FromEmail, ReservationDate, ReservationTime set on the properties panel in the ’ var ’ box_[/COLOR]  
[COLOR=#0000ff]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]FromName [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or FromEmail [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or ReservationDate [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR] or ReservationTime [COLOR=#0000ff]eq[/COLOR] [COLOR=#ff0000]""[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]getURL[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“javascript:alert(‘Please enter information in all fields’)”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR] [COLOR=#0000ff]else[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000ff]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

edit4: nattan99’s validator

> **[Email Validator - Page 3](https://www.kirupa.com/forum/showthread.php?204090-Email-Validator&s=a2416e339c6513b3d9ab316750302ecc&p=1746739#post1746739)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

edit5: as for regex in flash \<8.0 I beleive but havent tested…  
[http://www.kirupa.com/forum/showpost.php?p=1746781&postcount=33](http://www.kirupa.com/forum/showpost.php?p=1746781&postcount=33)

edit6: excellent javascript validator by icio  
[http://www.kirupa.com/forum/showpost.php?p=1913977&postcount=52](http://www.kirupa.com/forum/showpost.php?p=1913977&postcount=52)

edit7: rhamej simple validator  
[http://www.kirupa.com/forum/showpost.php?p=1914399&postcount=55](http://www.kirupa.com/forum/showpost.php?p=1914399&postcount=55)

---

<div class="post-metadata">

**Author:** ![masylum](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@masylum](https://forum.kirupa.com/u/masylum)\
**Post date:** [March 31, 2006, 2:49pm UTC](https://forum.kirupa.com/t/email-validator/174043/2 "2006-03-31T14:49:31Z")

</div>

i’m using amfphp and a validator function in php. A simple eregi…

eregi("^[a-z0-9]+([\_\.-][a-z0-9]+)_"."@([a-z0-9]+([.-][a-z0-9]+))_$",$mail,$regs)  
It works fine.
