Home  >  Article  >  Development Tools  >  Notepad++ removes line breaks in batches

Notepad++ removes line breaks in batches

藏色散人
藏色散人forward
2020-07-28 13:22:499478browse

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete