当前位置:网站首页>Notepad++ practical function sharing (regular line end line beginning replacement common methods, text comparison functions, etc.)
Notepad++ practical function sharing (regular line end line beginning replacement common methods, text comparison functions, etc.)
2022-07-19 15:18:00 【Have a drink no】
Many times, you need to add characters or text before and after multiple lines of text , Adding line by line is too much trouble .notepad++ Provides one key replacement function .
Replace common methods
open nodepad++ Software , Use ctrl+H Enter the replace selection box , Then check cycle search (wrap around), Find pattern selection regular expression (Reqular expression);
Insert... At the beginning of the line "^"
Insert a semicolon at the beginning of the line ’, stay Find the target (Find what) Input ^, And then in Replace with (replace with) Enter the semicolon you want to replace ’.
Insert at the end of the line "$"
Insert a semicolon at the beginning of the line ’, stay Find the target (Find what) Input $, And then in Replace with (replace with) Enter the semicolon you want to replace ’.
Remove spaces and blank lines at the beginning of the line :“^\s+” -> “”
End of line spaces and empty lines are removed : “\s+$” -> “”
Add rows :“\r\n” -> “\r\n\r\n”
Reduce row :“\r\n\r\n” -> “\r\n”
Multi line to one line :“\r\n” -> “”
Press xxx Break line :“xxx” -> “\r\n”
Press No xxx Wrap at the beginning :“^(?!xxx)” -> “\r\n”
AB Column CD Column quick swap :“(AB)\t(CD)” ->“$2\t$1”
Common plug-ins
Text comparison
open notepad++ Drag the file to be compared to the right , choice Move to other view( Move to another view ), choice Plugins->Compare->Compare The effect is as follows :
To add more plug-ins, you can choose Plugins->Plugin Manager->Show Plugin Manager, Add and download more plug-ins .
This is the end of this article ,
If you have any harvest, you are welcome to like, collect and pay attention to ️, Your encouragement is my biggest motivation .
If you have any wrong questions, you are welcome to point out .
Home page : Share a cup of no blog summaryKeep loving , Go to the next mountain and sea .

边栏推荐
- session management
- Leetcode 1275. Find out the winner of tic tac toe
- [leetcode]- dynamic planning-4
- 原始套接字
- Is it safe to buy funds in a securities account? I want to make a fixed investment in the fund
- Leetcode 1275. 找出井字棋的获胜者
- Unix ls
- Google Earth engine - Classification and processing of UAV images
- SBOM (software bill of materials)
- Selenium三种等待方式以及Alert弹窗的三种处理方式
猜你喜欢

微信小程序6-云开发-云数据库

Notepad++实用功能分享(正则行尾行首替换常用方法、文本比对功能等)

MMRotate从零开始训练自己的数据集

08_服务熔断Hystrix

Re understanding of Fourier transform

傅里叶变换的再理解

Google Earth engine - Classification and processing of UAV images

UCAS. Deep learning Final examination questions and brief thinking analysis

E. Split Into Two Sets(种类并查集+染色法判二分图)

影响分析:RubyGems未授权访问漏洞(CVE-2022-29176)
随机推荐
2020 ICPC Asia East Continent Final G. Prof. Pang‘s sequence 线段树/扫描线
队列的实现(循序存储,链式存储)
[flower carving hands-on] interesting music visualization project (11) --ws2812 magic ribbon
初试Dart,笔记
2020 ICPC Asia East continuous final g. Prof. Pang's sequence line segment tree / scan line
Summary of the third week of summer vacation
Graph Cuts学习
买股票开户应该选哪个证券公司?什么证券公司是更安全的
How to bind process threads to CPU cores
JVM common tuning configuration parameters
vscod
Field programmable logic gate array FPGA
现场可程式化逻辑闸阵列 FPGA
E. Split Into Two Sets(种类并查集+染色法判二分图)
P1004 [noip2000 improvement group] grid access
PostgreSQL installation et démarrage des tutoriels de base sous Linux et Windows
Distributed transaction summary
C - Matrix Chain Multiplication(栈的应用)
Cross domain and CORS
用对工具,CI事半功倍