Home>Article>Development Tools> How to convert one line into multiple lines according to delimiter in Notepad++

How to convert one line into multiple lines according to delimiter in Notepad++

(*-*)浩
(*-*)浩 Original
2019-08-07 11:46:09 11883browse

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

[cluster, activemq, controller, brokers, zookeeper, admin, isr_change_notification, kafka_eagle, otter, controller_epoch, kafka-manager, consumers, SPARK_TASK_OFFSET_CONFIG, config, hbase]

So, after thinking about it, I used commas as separators in notepadd character into a newline character to convert one line into multiple lines.

How to convert one line into multiple lines according to delimiter in Notepad++

1.Ctrl f to open search(recommended learning:notepad)

2.Replace

3.Regular expression

How to convert one line into multiple lines according to delimiter in Notepad++

##4.

Find the target and fill in "," and replace it with Fill in "\r" [\r is the carriage return in windows]

5.

Click "Replace All", the effect is as follows:

How to convert one line into multiple lines according to delimiter in Notepad++Remarks:This completes a basic cutting, cutting a single row into multiple rows.

The above is the detailed content of How to convert one line into multiple lines according to delimiter 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