1

I am writing validation form, and using standart php function "filter_var" with FILTER_VALIDATE_EMAIL, but it seems that above mentioned function does not work with unicode domains such as .рф, after reading some articles tried to encode with punycode and filter but no success. I just was curious is there any universal way to validate email not using regexp Thanx in advance

Velaro
  • 461
  • 1
  • 3
  • 20
  • Please check http://stackoverflow.com/questions/2899236/non-latin-email-address-validation and http://stackoverflow.com/questions/5219848/how-to-validate-non-english-utf-8-encoded-email-address-in-javascript-and-php – Wiktor Stribiżew Apr 21 '15 at 08:53
  • Thank you @stribizhev, the links you provided answered my question – Velaro Apr 21 '15 at 09:08
  • @Kamil fun fact: you were already using regex since the filter you used does use a regex under the hood :) – HamZa Apr 21 '15 at 09:23

0 Answers0