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, replaces the comma as the separator with the newline character , so that one line becomes multiple lines.
1. [Ctrl F] Open search (recommended learning: notepad )
2. Click [Replace]
3. Check [Regular Expression]
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:
Remarks: This completes a basic cutting, cutting a single row into multiple rows.
The above is the detailed content of How to replace line breaks with separators in notepad++. For more information, please follow other related articles on the PHP Chinese website!