The method of removing newline characters in batch in Notepad++
This article mainly introduces the method of removing newline characters in batch by Notepad++, which is very detailed and has certain reference value. Friends who are interested must finish it!
Batch removal of newline characters
First of all, the editor encounters such a problem and wants to quickly convert the content on the left of the following image into the style on the right.
Skillfully use\ r\ n and select to escape the backslash "\" as follows:
Requirements: batch deletion of all lines starting with "# id"
Delete all lines in the text that begin with "$id":, possibly hundreds of lines, and cannot be deleted manually line by line.
Resolve:
Regular expression: "\ $id\"\:. *?\ r\ n
First look for
Then replace-- > replace all
The above is all the content of this article "how to remove newline characters in Notepad++ batch". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!