I used to have an editor on an old Macintosh that had these features unfortunately I have not found a Windows text editor that has these two.
These features are really useful and would really like to see them in Textpad.
delete lines containing-delete lines except those containing
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 1
- Joined: Tue Apr 13, 2010 9:57 pm
- Location: Richland, Wa USA
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
To delete lines containing stuff:
Search | Replace... (<F8>):
Search | Find... (<F5>):
To delete lines not containing stuff:
Search | Find... (<F5>):
Edit | Delete | Bookmarked Lines
Search | Replace... (<F8>):
orFind what: .*stuff.*\n
Replace with: [nothing]
[X] Regular expression
Replace All
Search | Find... (<F5>):
Edit | Delete | Bookmarked LinesFind what: stuff
[X] Regular expression
Mark All
To delete lines not containing stuff:
Search | Find... (<F5>):
Search | Invert All BookmarksFind what: stuff
[X] Regular expression
Mark All
Edit | Delete | Bookmarked Lines