Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top