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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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).
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.