Home > Development Tools > notepad > body text

How to replace line breaks with separators in notepad++

(*-*)浩
Release: 2019-08-21 17:19:53
Original
4711 people have browsed it

How to replace line breaks with separators in notepad++

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

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]

How to replace line breaks with separators in notepad++

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:

How to replace line breaks with separators in notepad++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!

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!