Removing Names From Email List

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
bad959fl
Posts: 21
Joined: Wed Jun 15, 2005 11:32 pm

Removing Names From Email List

Post 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!
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
bad959fl
Posts: 21
Joined: Wed Jun 15, 2005 11:32 pm

Post by bad959fl »

Perfect! Thanks so much for your help :)
Post Reply