1

I want to delete all lines that do not contain specific words

Example:

.123
.keep1
.dsa
.keep2
.asd

Result:

.keep1
.keep2

I use this regex (?!^.*SOMETEXT.*$)^.+\r?\n (And replace with nothing), but I have several words now

1

1 Answer 1

0

You can do it in two steps:

    • Search menu > Mark...
    • Find what: ^\.(?:123|dsa|asd)$
    • Check Bookmark line
    • Find all
    • Search menu > Bookmark
    • Remove Unmarked Lines

Screenshot:

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.