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.
1.Ctrl f to open search (recommended learning: notepad )
2. Replace
3.Regular expression
##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:
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!