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
extraction from lists
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
List Extraction
Or should I be thinking in terms of deleting everything else but those lines containing (LNI)?
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.
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.