I am trying to parse text for email id's using php / regex. Are there any classes or built in methods to do this? The text contains multiple email id's at random places.
The source of the text is .doc files, which I then copy paste into forms, to be processed on submit.
preg_match('/^[^@]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$/', $email) //from php.net
I submitted a similar question on superuser for software solutions to the problem.