extraction from lists

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
shippee
Posts: 12
Joined: Fri Dec 26, 2008 9:40 pm
Location: Olympia, Washington
Contact:

extraction from lists

Post by shippee »

I have a list, for example:

Allen, Mike (ATG)
Anderson, Ron (DOL)
Baldwin, Shari (DOR)
Belfield, Marty (DSHS/CA)
Bendemire, Dave (CFC)
Bivins, Ellie (LNI)

List is much larger than this, of course - how would I best extract only those lines containing (LNI) using regular expressions in TextPad v. 5.2?

Thanks in advance,

Steven Shippee
shippee
Posts: 12
Joined: Fri Dec 26, 2008 9:40 pm
Location: Olympia, Washington
Contact:

List Extraction

Post by shippee »

Or should I be thinking in terms of deleting everything else but those lines containing (LNI)?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You don't need regular expressions to do this.

To extract lines containing (LNI):

1. Click Search > Find.
2. In Find what, enter (LNI).
3. Clear the Regular expression check box.
4. Click Mark All.
5. Click Edit > Copy Other > Bookmarked lines.
6. Paste the copied text into another document.

Alternatively, to delete all lines not containing (LNI):

1. Click Search > Find.
2. In Find what, enter (LNI).
3. Clear the Regular expression check box.
4. Click Mark All.
5. Click Search > Invert All Bookmarks.
6. Click Edit > Delete > Bookmarked Lines.
Post Reply