Home > Development Tools > notepad > How to wrap a line by separator in Notepad++

How to wrap a line by separator in Notepad++

(*-*)浩
Release: 2019-08-21 16:35:42
Original
11831 people have browsed it

How to wrap a line by separator in Notepad++

I was doing something today. When I encountered the following characters, I wanted to put each word, such as cluster and zookeeper, on a separate line.

[cluster, activemq, controller, brokers, zookeeper, admin, isr_change_notification, kafka_eagle, otter, <br>controller_epoch, kafka-manager, consumers, SPARK_TASK_OFFSET_CONFIG, config, hbase]<br>
Copy after login

So, After thinking about it, in notepadd, replace the comma as the separator with the newline character to achieve one line to multiple lines.

1. [Ctrl F] Open search (recommended learning: notepad )

2. Click [Replace]

3. Check [Regular Expression]

How to wrap a line by separator in Notepad++

4. [Search target] fill in "," ( separator), [Replace with] fill in "\r" [\r is the carriage return in Windows]

5.Click the [Replace All] button, the effect is as follows:

How to wrap a line by separator in Notepad++Remarks: This completes a basic cutting, cutting a single row into multiple rows.

The above is the detailed content of How to wrap a line by separator in Notepad++. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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