Sunday, December 25, 2011

Notepad++ - replace line break \n\r ...

Notepad++ - replace a pattern with line break then sort line in the order
There are something new in the Notepad++ 5.0.

I can replace a pattern with line break.
Let's say I have
for example:
7E18, 1801A, 7F19, 7D16, -20,  7F17, 18118, 38317, 38315, -20

I enter CTL+F to open Find, then switch to Replace.
In Find What, I enter "-20 " and Replace With \n, then I need to check Search Mode > Extended (\r ...). Then hit "Replace All" button.
I got
 7E18, 1801A, 7F19, 7D16,
7F17, 18118, 38317, 38315,
That's all.

This method is very helpful for my work.


No comments:

Post a Comment