Menu

A question about Regular Expression Search

2007-03-26
2012-11-13
  • Nobody/Anonymous

    1.how can i del blank line?
    2.i can search .*:0.*,but when i serach .*:0 .*\n  it say can not find....

     
    • pshute

      pshute - 2007-03-27

      There's a plugin to delete blank lines in Plugins/TextFX Edit.

      If you want to do it with Find/Replace, have a look at http://notepad-plus.sourceforge.net/uk/newlineFindReplace-HOWTO.php, but I haven't tried any of those tips with empty lines.  Searching for control+M control+M in advanced find/replace without regex works sometimes, but not always.  Not sure why.

       
      • pshute

        pshute - 2007-03-29

        Actually, I had Selection ticked in control+R, and the selection didn't cover everything.  This gets ticked automatically if anything is selected, making it appear to behave erratically if you aren't aware of that.

         
    • James Yoneda

      James Yoneda - 2007-03-27

      Normally I'd search for ^\n
      ^ is beginning of the line, \n is the newline.  But for some reason, NPP doesn't like this (can't find or replace it).  No help here.