Re: Regex in PHP

From: Date: Wed, 04 Jun 2008 16:02:04 +0000
Subject: Re: Regex in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275014@lists.php.net to get a copy of this message
VamVan wrote:
Hello All, For example I have these email addressess - xxxx@yahoo.com xxxx@hotmail.com xxxx@gmail.com What would be my PHP function[Regular expression[ to that can give me some thing like yahoo.com hotmail.com gmail.com Thanks
Or if you know that the address is valid and you may need both parts: list($name, $domain) = explode('@', 'xxxx@yahoo.com'); -Shawn

« previous php.general (#275014) next »