note 78355 deleted from function.preg-match-all by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 01:55:49 +0000 |
| Subject: | note 78355 deleted from function.preg-match-all by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133080@lists.php.net to get a copy of this message | ||
Note Submitter: ino
----
extract all emails from text
preg_match_all("/[-a-z0-9\._]+@[-a-z0-9\._]+\.[a-z]{2,4}/",
file_get_contents('1.txt'), $email);
print_r ($email);