I'm uploading Tab Delimited text files exported from Excel, basically i'm getting all email fields on the document, by using a preg_match_all
preg_match_all("/([\s]*)[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i",$string,$emails);
In some cases emails are saved with a url attached to it like this: prefix.user@domain.comwww.domain.com
i need to strip only the email without the url that's afterwards the email address
how can i make this work using regular expressions??