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!
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!