...
|
...
|
@@ -96,9 +96,9 @@ class MailFun { |
|
|
preg_match('/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/',$str,$email);
|
|
|
if(empty($email[0])){
|
|
|
// 邮箱2
|
|
|
preg_match('/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/',$str,$email);
|
|
|
preg_match('/[a-zA-Z0-9._%+-{}]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/',$str,$email);
|
|
|
}
|
|
|
return $email[0]??'';
|
|
|
return str_replace(['<','>'],'',$email[0]??'');
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|