[PHP] Re: Regex in PHP
- Date: Wed, 04 Jun 2008 11:54:16 -0400
- From: Al <news@xxxxxxxxxxxxx>
- Subject: [PHP] Re: Regex in PHP
$user = trim(strstr($email, '@'), '@);
VamVan wrote:
Hello All,
For example I have these email addressess -
xxxx@xxxxxxxxx
xxxx@xxxxxxxxxxx
xxxx@xxxxxxxxx
What would be my PHP function[Regular expression[ to that can give me some
thing like
yahoo.com
hotmail.com
gmail.com
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php