Re: More Email ereg Validation

From: Date: Thu, 05 Apr 2001 03:55:38 +0000
Subject: Re: More Email ereg Validation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47163@lists.php.net to get a copy of this message
In article <000501c0bd59$b637e7b0$523987cf@corp.peoplesoft.com>, dan@acucore.com says... }I'm trying to parse the different "parts" of an email address both for }validation and munging. } }I have the following regex: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3}) } }This works great, except it doesn't accept the country code domains (.au, }etc). So I changed the number of characters to {2,3} at the end of the }regex: }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2,3}) } Here's a quick patch.. =) ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?) -- Jeff Carnahan - jcarnahan@networq.com

« previous php.general (#47163) next »