I got a text: $text = "Blah... email@example.com
How do I get hold of the e-mail addresses: firstname.lastname@example.org
, ... using regex? How to do it with php?
Would this be an smart way to do it?
preg_match_all("/(\w|\.)*@\w*\.\w*/", $text, $match);
$match contains all matches, all e-mail addresses in $text. (I also want to match e-mail addresses like email@example.com
Thanks for any suggestions!