This is a discussion on retrieve email address within the PHP General forums, part of the PHP Programming Forums category; I would like to retrieve email address from email with regular expression. ------email------------ .. .. .. From: testaddress@gmail.com .. .. .. ------------------------------ if anybody know ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. Regards, Yui |
|
|||
|
> 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 | +----------------------------------------+ |
|
|||
|
In article <ad53f65d0805041138r6e5fdd07l4aa93b12b61948a9@mail .gmail.com>,
"Yui Hiroaki" wrote: > 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. Posting on usenet means you will need to review what people answer on usenet. The original regex to check an e-mail address is some 64Kb afaik. Dot you really want to see it here? http://ex-parrot.com/~pdw/Mail-RFC822-Address.html Best regards, Hans -- IM: hans.wolters@xs4all.nl http://lonki.xs4all.nl |
|
|||
|
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 | > +----------------------------------------+ > |