<?php
$email = 'http://ヒキワリ.ナットウ.ニホン';
$email = idn_to_ascii($email);
echo $email . "\n";
$dictionary = array('aero', 'arpa', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel');
$expression = '^[a-z0-9_-]+(?:[a-z0-9._%+-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z]{2}|' . implode('|', $dictionary) . ')$';
echo mb_eregi($expression, $email) !== false;
?>
preferences:
42.03 ms | 402 KiB | 5 Q