Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.