1. PHP 邮箱验证正则表达式:preg_match("/^[0-9a-zA-Z]+@(([0-9a-zA-Z]+)[.])+[a-z]{2,4}$/i",$email );如果需要更加完善、严格的验证,修改这个正则表达式即可。2. PHP 邮箱验证正则表达式实例:<?phpfunction isEmail($email){ if(preg_match("/^[0-9a-zA-Z]+@(([0-9a-zA-Z]+)[.])+[a-z]{2,4}$/i",$email )){return '是邮箱';} else{return '不是邮箱';}}?>3. Javascript(js) 邮箱验证正则表达式:myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/;这个可以验证 形如:i@julying.com ,i@i.com 这种邮箱4. Javascript(js) 邮箱验证正则表达式实例:<script type="text/javascript">function isEmail(val){ var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,4}$/;if(!myreg.test(val))return '不是邮箱';return '是邮箱';};alert( isEmail('i@julying.com') );</script>
1.Email地址: (RFC 2822 标准)表达式: ^((?>[a-zA-Z\d!#$%&'*+\-/=?^_`{|}~]+\x20*|"((?=[\x01-\x7f])[^"\\]|\\[\x01-\x7f])*"\x20*)*(?<angle><))?((?!\.)(?>\.?[a-zA-Z\d!#$%&'*+\-/=?^_`{|}~]+)+|"((?=[\x01-\x7f])[^"\\]|\\[\x01-\x7f])*")@(((?!-)[a-zA-Z\d\-]+(?<!-)\.)+[a-zA-Z]{2,}|\[(((?(?<!\[)\.)(25[0-5]|2[0-4]\d|[01]?\d?\d)){4}|[a-zA-Z\d\-]*[a-zA-Z\d]:((?=[\x01-\x7f])[^\\\[\]]|\\[\x01-\x7f])+)\])(?(angle)>)$匹配: name.surname@blah.com | Name Surname <name.surname@blah.com> | "b. blah"@blah.co.nz不匹配: name surname@blah.com | name."surname"@blah.com | name@bla-.com2.Email地址:表达式:^(?:[a-zA-Z0-9_'^&/+-])+(?:\.(?:[a-zA-Z0-9_'^&/+-])+)*@(?:(?:\[?(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\.){3}(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\]?)|(?:[a-zA-Z0-9-]+\.)+(?:[a-zA-Z]){2,}\.?)$匹配: you.me.hello@somewhere.else.cc | joe_smith@here.com. | me@[24.111.232.1]不匹配: .me.you@here.com | .murat@62.59.114.103.nl | test_case@here*555%there.com3.Email地址:表达式:^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$匹配:test@test.com | nerdy.one@science.museum | ready&set@go.com.au不匹配: .test.@test.com | spammer@[203.12.145.68] | bla@bla4.Email地址:表达式:^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*\s+<(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})>$|^(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})$匹配:Mohit <myadav@yahoo.com> | Xon <JON@jon.com> | Xon@something.com不匹配: mohit<myadav@yahoo.com> | Xon <JON@jon.com>, tom <jon@jon.com> | Xon@somthing.com,5.Email地址:表达式:^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$匹配:te_s-t@ts.co.in;te_s-t@ts.co.in;te_s-t@ts.co.in不匹配: nospace@between.mailids.in ; only@semi.colons.com6.Email地址:^[\n <"']*([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)匹配: blah.v.blah@blah-blah.net | blah-blah.blah@blah.com | .@.不匹配: blah@7.Email地址^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$ 匹配:asmith@mactec.com | foo12@foo.edu | bob.smith@foo.tv 不匹配: joe | @foo.com | a@a 8.Email地址: ^((?:(?:(?:[a-zA-Z0-9][\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\.\-_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$ 匹配:abc@def.gh | a+b_c@d-e_f.gh | abc@def.ghijkl 不匹配: __@__.__ | -a-@-b-.cd | a--b@c__d.ef 9.Email地址:^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$ 匹配: Matches e@eee.com | eee@e-e.com | eee@ee.eee.museum 不匹配: .@eee.com | eee@e-.com | eee@ee.eee.eeeeeeeeee
^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$网上通用的.祝你成功!!!