Re: retrieve email address

From: Date: Mon, 05 May 2008 09:19:25 +0000
Subject: Re: retrieve email address
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-273877@lists.php.net to get a copy of this message
HI! I do not use PEARm then find email address from email. Dose anyone know how to get it?? It does noe blow; ereg("^From: \s+ .*", $data) ; Regards, yui 2008/5/5 Richard Heyes <richardh@phpguru.org>: > > > > I would like to retrieve email address from email with regular expression. > > > > ------email------------ > > . > > . > > . > > From: testaddress@gmail.com > > . > > . > > . > > ------------------------------ > > > > if anybody know how to do it, please send me email. > > > > Can, worms, everywhere. Try looking at the Mail::RFC822 package in PEAR. > There's also a shortcut function for just matching an Interweb email > address. > > -- > Richard Heyes > > +----------------------------------------+ > | Access SSH with a Windows mapped drive | > | http://www.phpguru.org/sftpdrive | > +----------------------------------------+ >

« previous php.general (#273877) next »