Re: Regex in PHP
| From: | Al | Date: | Wed, 04 Jun 2008 15:54:16 +0000 |
| Subject: | Re: Regex in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275012@lists.php.net to get a copy of this message | ||
$user = trim(strstr($email, '@'), '@);
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