Lōʻihi Wae Leka Uila

Depositphotos 1948865 s

Ua pono wau e hana i kahi ʻeli ʻana i kēia lā e ʻike, akā ua ʻike anei ʻoe i ke ʻano o ka lōʻihi o kahi leka uila? Ua haki maoli ʻia i mau ʻāpana ... Inoa@Domain.com. Kēia mea e like me RFC2822.

  1. Hiki i ka inoa ke 1 a 64 mau huapalapala.
  2. Hiki i ka Domain ke 1 a 255 mau huapalapala.

Wow ... ʻo ia hoʻi he pane leka uila kūpono kēia:


loremaipsumadolorasitaametbaconsectetueraadipiscin
gaelitanullamc @ loremaipsumadolorasitaametbaconsect
etueraadipiscingaelitcaSedaidametusautanisiavehicu
LaaluctuscaPeresesqueatinciduntbadiamaidacondimn
tumarutrumbaturpisamassaaconsectetueraarcubaeuatin
ciduntaliberoaaugueavestibulumaeratcaPhasellusatin
ciduntaturpisaduis.com

E hoʻāʻo e hoʻopili i kēlā ma kahi kāleka ʻoihana! ʻO ka mea mahalo, ʻo ka hapa nui o nā kahua helu leka uila i 100 mau huapalapala ma ka pūnaewele. ʻAʻole kūpono kēlā. Inā makemake ʻoe e hōʻoia i kahi leka uila no ke kūkulu kūpono ʻana me ka hoʻohana ʻana iā PHP, ua loaʻa iaʻu kēia mahele ma ka ʻupena.

http://derrick.pallas.us/email-validator/ # Laikini: Laikini Manuahi Kālaiʻike 2.1 # Mana: 2006-12-01a inā (! ereg (''. '^'. '[-! # $% & \ '* + / 0-9 =? AZ ^ _a-z {|} ~]'. '(\\.? [-! # $% & \' * + / 0-9 =? AZ ^ _a-z { |} ~]) * '.' @ '.' [a-zA-Z] (-? [a-zA-Z0-9]) * '.' (\\. [a-zA-Z] (- ? [a-zA-Z0-9]) *) + '.' $ ', $ leka uila)) hoʻihoʻi wahaheʻe; papa inoa ($ kūloko, $ domain) = hoʻokaʻawale ("@", $ leka uila, 2); inā (strlen ($ kūloko)> 64 || strlen ($ domain)> 255) hoʻi hewa ʻole; inā ($ hōʻoia &&! gethostbynamel ($ domain)) hoʻi hewa; e hoʻi ʻoiaʻiʻo; # HOPE ### ####}

9 Comments

  1. 1
  2. 2

    ʻAe, ʻike wau i ka nele o ka hoʻokō ʻana i nā hoʻonā ʻē aʻe me ka RFC pū kekahi. Ua ʻike au, ʻoiai ʻo kēia regex he atypical a ʻaʻole ka maʻamau. Hoʻomanaʻo wau i ka heluhelu ʻana i ka regex maoli (ʻae ʻia <,>, , a me nā mea ʻē aʻe) he koʻikoʻi no ka hapa nui o nā kaʻina hana.

    Eia nō naʻe, ua kākau maʻalahi a ʻoiaʻiʻo he hopena e ʻae ʻia i kekahi noi leka uila ʻoihana.

    Mahalo, Hou!
    Doug

  3. 3

    ʻO ka mea pōʻino, ua hoʻopili wau i kēlā ʻaoʻao i ka RFC hewa (2821 ma kahi o 2822) akā ua hoʻoponopono ʻia. ʻAʻole hiki ke komo i nā ʻāpana kihi o ka ʻāpana kūloko a i ʻole ka ʻāpana o kahi leka uila; akā, hōʻike lākou i nā helu hōʻailona, ​​ʻo ia hoʻi, hiki ke hoʻohana ʻia e hoʻopuni i kahi leka uila (e like me kāu mea heluhelu leka uila) no ka mea ʻaʻole hiki iā lākou ke lilo i ʻāpana o ka helu wahi.

    ʻO kahi mea a kaʻu hana i hana ʻole ai, ʻo ia ka hopohopo e pili ana i ke ʻano o nā leka uila i ʻōlelo ʻia - kahi i ʻike ʻia ai ka ʻāpana kūloko i nā huaʻōlelo pālua - no ka mea, ʻōlelo maoli ʻo RFC2821 ʻaʻole pono kekahi e kākau i kā lākou helu wahi ma ia ala. (Ke manaʻoʻiʻo nei au no ka hoʻohālikelike ʻana i hope a he hana maikaʻi ʻole kēia.)

  4. 4

    ʻOiaʻiʻo ʻo RFC2821 IS ka kuhikuhi pololei no ka lōʻihi o ka leka uila. Loaʻa iaʻu ma laila, ʻaʻole ma RFC 2822.

  5. 5

    Aia ka palena ma RFC 2821 i ka lōʻihi o kahi helu ma nā kauoha MAIL a me RCPT o 256 mau huaʻōlelo. Pono e noʻonoʻo ʻia ka palena kiʻekiʻe o ka lōʻihi o ka helu wahi he 256.

    — Puna: RFC 3696 Errata

    Eia kekahi, no ka mea, ʻōlelo ʻo RFC 2181 "Ua kaupalena ʻia ka inoa kikowaena piha i 255 octets", ua kuhi hewa pinepine ʻia e ka poʻe (me nā mea kākau o nā RFC ʻē aʻe) ʻo ke ʻano he 255 chars ka lōʻihi o nā inoa inoa. Akā ke kamaʻilio nei ʻo RFC2181 e pili ana i ka hōʻike ʻana i ka pae protocol DNS ma ka uea, ʻaʻole nā ​​mea paʻi.

    ʻO ka lōʻihi loa o ka inoa kikowaena he 253 chars (254 me ke kiko hope, 255 octets ma ka uea me ka pau ʻana o ka null). A ʻo ia ka mea e hoʻokō ai ʻo BIND a me DiG.

  6. 6
  7. 7
  8. 8

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.