On 23-Oct-2007, at 08:48, Mike Morton wrote:
Is there some sort of script or forumla that I can run in BBEdit that will
extract these emails?

In BBEdit? Simple, process lines containing '@' (based on your data set)

On 23-Oct-2007, at 09:04, Matthew Fischer wrote:

Or, if you only want the *valid* e-mail addresses, you could use process lines containing with Grep and match one of the e-mail validator RegEX's, such as this one:

^[a-z0-9\._-]+\@([a-z0-9][a-z0-9-]*[a-z0-9]\.)+([a-z]+\.)?([a-z]+)$

This regex will fail on most of my email addresses because it doesn't include a '+' in the username portion as a valid character.

[a-z0-9\._-+]+ is better, although of course it is perfectly legal to have the user portion of an email address be a quoted string ("tom jones"@mydomain.tld). In fact, many characters are valid in the user name portion that are not included here, including # $ % & * ! { } " = and others, albeit these characters are as rare as moon ponies in the wild. Various RFCs for details.

--
Advance and attack! Attack and destroy! Destroy and rejoice!


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to