Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to remove all lines that contains NULL, using Notepad++ as follows:

Line:

NULL,123456789333333

regular expersion I tried:

Find: ^.*NULL.*$
replace with:     (blank, nothing)   

it deleted the line contents, but empty line still there. how to delete the whole line.

share|improve this question
    
Notepad++ and Unix... what am I reading/seeing? –  Shiki Sep 8 '12 at 12:31
add comment

1 Answer

up vote 1 down vote accepted

Try this: ^.*NULL.*\r\n this won't delete the last line if there's NULL on it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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