Re: extracting email addresses

From: Date: Wed, 16 May 2001 19:54:46 +0000
Subject: Re: extracting email addresses
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7633@lists.php.net to get a copy of this message
Couple tid bits of info will help. Is the file in a defined format? Are the emails just random within the text? If random you'll want to use preg_match_all You'll have to develop the exact expression to find the emails address. If the file is formatted just figure out the pattern and grab partials to get what you want afan wrote:
Hi all, there is my problem: I have a large text file with a lot of email addresses included in text. I have to extract just email addresses from a whole text. What's the way to do that? Thanks for any help! Afan
-- Michael Kelley mkelley@nmsu.edu Programmer/Systems Analyst I New Mexico State University Information and Communication Technologies Work # (505)-646-1374 P.O. Box 30001 MSC: 3AT Las Cruces, NM 88003

« previous php.windows (#7633) next »