Menu

newline finding with regular expression

2007-11-21
2012-11-13
  • Nobody/Anonymous

    I'm looking for an expression that allows me to find and replace newline character with space using regular expression.
    I'm trying this: ^.*$\n
    but this is not working (but it is from an unix shell)

    thanks

     
    • Nobody/Anonymous

      Use CTRL+R Replace Dialog _without_ regular expressions.

      Type CTRL+M in the Find field for the newline, so it will be found and part of the match and can be replace by whatever you type in the Replace field (CTRL+M will also be allowed there, as CTRL+I for tab characters).

       
      • pshute

        pshute - 2007-11-21

        Exactly what I would suggest, but please read http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo for details about why this is necessary and what the other alternatives are.