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

How to wrap a line by separator in Notepad++

(*-*)浩
(*-*)浩Original
2019-08-10 10:31:1411799browse

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>

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!

Statement:
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