[PHP] Re: Regex in PHP

2008-06-04 Thread Shawn McKenzie
VamVan wrote: Hello All, For example I have these email addressess - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 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

[PHP] Re: Regex in PHP

2008-06-04 Thread Al
$user = trim(strstr($email, '@'), '@); VamVan wrote: Hello All, For example I have these email addressess - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] What would be my PHP function[Regular expression[ to that can give me some thing like yahoo.com hotmail.com gmail.com Thanks