我在这些汇总的电子邮件中有一堆姓名和电子邮件地址,我想摆脱除First Last <email@domain.com>
整个文档之外的所有内容。基本上我有...
From: Name Wood <email@gmail.com>
Subject: Yelp entries for iPod contest
Date: April 20, 2012 12:51:07 PM EDT
To: email@domain.cc
Have had a great experience with .... My Son ... is currently almost a year into treatment. Dr. ... is great! Very informative and always updates us on progress and we have our regular visits. The ... buck program is a great incentive which they've implemented to help kids take care of their teeth/braces. They also offer payment programs which help for those of us that need a structured payment option. Wouldn't take my kids anywhere else. Thanks Dr. ... and staff
Text for 1, 2, and 3 entries to Yelp
Hope ... wins!!
Begin forwarded message:
From: Name Wood <email@gmail.com>
Subject: reviews 2 and 3
Date: April 20, 2012 12:44:26 PM EDT
To: email@domain.cc
Have had a great experience with ... Orthodontics. My Son ... is currently almost a year into treatment. Dr. ... is great! Very informative and always updates us on progress and we have our regular visits. The ... buck program is a great incentive which they've implemented to help kids take care of their teeth/braces. They also offer payment programs which help for those of us that need a structured payment option. Wouldn't take my kids anywhere else. Thanks Dr. ... and staff
Have had a great experience with...
我只想匹配...
Name Wood <email@gmail.com>
Name Wood <email@gmail.com>
从这个文本。所以基本上我想匹配单词"From: "
plus之后的下两个单词,"<"+email address+">"
不包括单词"From: "
。我从研究中了解到,这是一个消极的前瞻性(我认为)搜索两个完整的单词(不知何故使用{0,2}
),然后是一个从一个<
字符到另一个字符的电子邮件地址>
。