开发者

Email validation in PHP [duplicate]

开发者 https://www.devze.com 2022-12-21 17:49 出处:网络
This question already has answe开发者_运维技巧rs here: Closed 12 years ago. Possible Duplicate: Is there a php library for email address validation?
This question already has answe开发者_运维技巧rs here: Closed 12 years ago.

Possible Duplicate:

Is there a php library for email address validation?

Hi there, I was just wondering if any of you use a particular public script or set of functions for dealing with email validation in PHP. The built-in PHP function isn't really anything to brag about.

Thanks for your time.


I use to validate with cakephp function which can be found here

The regexp is this one:

'^[a-z0-9!#$%&*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+(?:[a-z]{2,4}|museum|travel)$'

and can be found here

0

精彩评论

暂无评论...
验证码 换一张
取 消