See this node for some answers to your problem.
A quick solution, however, would be to /\@(.+?)\s/; or ($user, $domain) = split(/\@/, $email, 2);
Update: Fixed a yet another typo, got rid of a temp array... thanks grep :)
John J Reiser
newrisedesigns.com
In reply to Re: (nrd)Regex Help
by newrisedesigns
in thread Parsing email addresses (was: Regex Help)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |