how do u a delete a line

General questions about using WildEdit

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

Post Reply
yaakove2005
Posts: 1
Joined: Mon Nov 02, 2009 10:32 pm
Location: monsey ny
Contact:

how do u a delete a line

Post 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
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
the_egg_man
Posts: 3
Joined: Tue Feb 10, 2009 5:30 pm
Location: Minneapolis

Post 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
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.
Post Reply