Regex in notepad++ are not powerful. You can't use \n in find.
But you can do this without regex :
Select two lines, press ctrl H and you'll have two strange characters.
Those squares are the carriage return and the line feed I think.
Copy them and use it in the replace field too.
And don't forget to uncheck regex.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would love to be able to type things like \n into the "find" part of find and replace and get expected results...
find: \n
replace: \n\n
with the regex box ticked should allow me to change a single new line entity to two new lines.
Regex in notepad++ are not powerful. You can't use \n in find.
But you can do this without regex :
Select two lines, press ctrl H and you'll have two strange characters.
Those squares are the carriage return and the line feed I think.
Copy them and use it in the replace field too.
And don't forget to uncheck regex.
Or use ctrl R, the replace tool of TextFX.
ctrl enter to create new lines
Hi, regarding the Replace-Regex: i found that this crashes the n++ 6.2.3 entirely!
can someone confirm this?
Chances are that 6.2.4 solves this - see the thread on regex empty matches.
CChris