Home > Development Tools > notepad > body text

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

(*-*)浩
Release: 2019-08-21 16:06:40
Original
11972 people have browsed it

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]
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!