Monday, August 17, 2009

notepad++ insert carriage return

In notepad++ you can easily find a carriage return by copying a section of texxt with a carriage return in it and doing ctrl+f or ctrl+h to replace, but you cannot copy that block and paste into the replace box. I found the answer for this here: http://bytes.com/topic/net/answers/767637-find-replace-insert-return-character

In the replace area, type

\1\r\n\2 -- \1 is the first group, \r\n is a carriage return and a new
line, \2 is the second group.

No comments: