Menu

Search In Notepad++

2008-01-19
2012-11-13
  • Nobody/Anonymous

    This is the only real flaw I have found in Notepad++ and that is that when searching you cannot search for something with a new line, for instance:

    If I wanted to search for "hello
    e
    v
    e
    r
    y
    o
    n
    e"

    I couldn't do it.  Or If I wanted to search for a word and then replace it with a new line or some text and a new line I couldn't do it.

    This is just a sort of suggestion for later versions.

    Great programme though.

     
    • Leonardo Jr.

      Leonardo Jr. - 2008-01-22

      Still, you can do it with the advanced file/replace, but you can't apply that replacement to a group of files (like we can replace in all open documents). And that's a life saver sometimes...
      There's any way i can do that in notepad++ (i need to replace chuncks of HTML code in some pages)?

       
      • Nobody/Anonymous

        Use a free text block replacer for that, like textrep:
        http://www.free-to-try.com/textrep

        As long as you don't need regex this will do. Of course, there are other tools that can perform similar or even more difficult tasks.

         
    • Nobody/Anonymous

      You are wrong. You CAN search for and add newline characters.
      Use the CTRL+R advanced Find/Replace dialog.

      You can enter newline characters here by pressing CTRL+M or CTRL+Enter and also tab characters by pressing CTRL+I.

      In regex mode it is possible to add tabs by (re)placing \t and I believe newlines will also work with \r\n.

       
      • pshute

        pshute - 2008-01-22

        I'm not sure about the \t and \r\n but I haven't tried it for a few versions.  Please see http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo for everything I know about this topic and if you find that those characters do work now then please correct that article.

         
    • Nobody/Anonymous

      Thanks!  Notepad++ is amazing!