Page 1 of 1

extraction from lists

Posted: Thu Jul 21, 2011 8:40 pm
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

List Extraction

Posted: Thu Jul 21, 2011 8:57 pm
by shippee
Or should I be thinking in terms of deleting everything else but those lines containing (LNI)?

Posted: Fri Jul 22, 2011 2:02 am
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.