Page 1 of 1

Removing Names From Email List

Posted: Thu Feb 24, 2011 4:07 pm
by bad959fl
Hi Everyone,

I have a large database of email addresses in a text file but many of the entries have the full name of the person. I'm trying to find a command in TextPad to do the following:

--------------------------------------
FROM THIS:
John Smith <name1@email.com>
Jane Smith <name2@email.com>

TO THIS:
name1@email.com
name2@email.com
--------------------------------------

I appreciate the help anyone can provide. Thanks!

Posted: Thu Feb 24, 2011 9:41 pm
by ben_josephs
Use "Posix" regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Search | Replace... (<F8>):
Find what: ^[^<]*<([^>]+)>.*
Replace with: \1

[X] Regular expression

Replace All

Posted: Thu Feb 24, 2011 9:47 pm
by bad959fl
Perfect! Thanks so much for your help :)