Page 1 of 1

how do u a delete a line

Posted: Tue Nov 03, 2009 2:54 am
by yaakove2005
guys how do u a delete a line if say i found "vst" on that line??

and checking the whole file!!

thanks

jack

Posted: Tue Nov 03, 2009 4:41 am
by Bob Hansen
In TextPad:

Search for ^.*vst.*\n
Replace with: NOTHING
=================

I don't know if that works in WildEdit.

Use the following settings:
-----------------------------------------
[X] Regular expression
Replace All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------

Suggest having a backup copy of the original before proceeding with mass changes/deletes.

Posted: Thu Nov 12, 2009 12:26 pm
by the_egg_man
How would it be done if the opposite criteria was used? For example, to delete every line that does not contain the literal string "vst".

Thanks

Posted: Thu Nov 12, 2009 1:37 pm
by ben_josephs
Find what: ^(?!.*vst).*\r?\n
Replace with: [nothing]

[X] Regular expression

Options
[X] '.' does not match a newline character
Of course, this will not work in TextPad.