Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of removing newline characters in batch in Notepad++

Shulou Source: shulou.com Published: 2022-06-02 16:27:44 10月02日 Update

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!

Tags: Content newline character method beginning article ingenious one line following picture value interest right guy buddy manual slash more style rule knowledge industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL MariaDB NVidia OPPO Reno Apple