Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .