今天在做個(gè)事情,遇到下面字符,就想將每個(gè)詞,如cluster,zookeeper都單獨(dú)的一行
[cluster, activemq, controller, brokers, zookeeper, admin, isr_change_notification, kafka_eagle, otter, controller_epoch, kafka-manager, consumers, SPARK_TASK_OFFSET_CONFIG, config, hbase]
所以,想了下,在notepadd++中,將逗號(hào)作為分隔符替換成換行符,實(shí)現(xiàn)一行變多行。
1.Ctrl + f打開(kāi)搜索(推薦學(xué)習(xí):notepad的使用)
2.替換
3.正則表達(dá)式
4.查找目標(biāo)填寫“,”,替換為填寫“r” 【r是windows中的回車】
5.點(diǎn)擊“全部替換”,效果如下:
備注:這樣就完成了一個(gè)基本的切割,將單行切割為多行。