Wow.  Thanks everyone.  One of those cases where I did not even know that
feature existed!  This will come in VERY usefull!  Thanks!

For what it is worth - I do have an email RegEX that works for about 99.9%
of emails on a retail website:

([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+
[a-zA-Z]{2,6}\$

It is very reliable and I have had no false positives that I am aware of...
Just did not know how to apply it to the task at hand - now I know! :)


On 10/23/07 11:12 AM, "Google Kreme" <[EMAIL PROTECTED]> wrote:

> 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.

-- 
Cheers

Mike Morton

****************************************************
*
* Tel: 905-465-1263
* Email: [EMAIL PROTECTED]
*
****************************************************




-- 
------------------------------------------------------------------
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