|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> 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 | +----------------------------------------+ |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 | > +----------------------------------------+ > |
|
![]() |
| Outils de la discussion | |
|
|