Home > Development Tools > notepad > body text

Notepad++ removes line breaks in batches

藏色散人
Release: 2020-07-28 13:22:49
forward
9496 people have browsed it

The following tutorial column of notepad will introduce to you how to quickly replace line breaks and remove line breaks in batches in Notepad. I hope it will be helpful to friends in need!

Notepad++ removes line breaks in batches

Remove newlines in batches

First of all, the editor encountered such a problem and wanted to add the content on the left side of the picture below Quickly convert to the style on the right.

Make clever use of \r\n, and select pair the backslash "\"Escape, as follows:

Requirement: Batch delete the content of all lines starting with "#id"

Delete the text All lines starting with "$id": , there may be hundreds of lines, and cannot be deleted manually one by one.

Solution:
Regular expression: "\$id\"\:.*?\r\n
Find first

Then replace——>Replace all

The above is the detailed content of Notepad++ removes line breaks in batches. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template