$mail = '123-456@q-q.com.cn';
//preg_match('/^([0-9a-z-_]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/i',$mail,$data); //i为大小写不敏感,$为匹配输入字符串的结束位置,?匹配一并或0次
print_r($data);exit;