Jump to content
Muxe Inc Forums
Sign in to follow this  

[wish] Search And Delete Line.

Recommended Posts

Adam_L    0


I have an idea for a new feature for the editor NDN.

To menu "Search" add function "Delete line..."

This feature would operate similarly to the "Replace..."

but when it finds the search text (or will not find - as an option) delete the whole line.

Of course, finding it should be possible by means of regular expressions.



I want to delete all lines NOT starting with the words: FUNCTION or PROCEDURE

I set:

Text to find: $[ \t]*(FUNCTION|PROCEDURE)

Options: [x] Delete when NOT FOUND , [x] Regular expression

And press key "Delete all"



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this