当前位置:网站首页>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 .

边栏推荐
猜你喜欢
随机推荐
Face technology: the picture of unclear people is repaired into a high-quality and high-definition image framework (with source code download)
06_服务调用Feign
ARM未定义指令异常 汇编
[GYM103660] The 19th Zhejiang University City College Programming Contest 浙大城市学院校赛VP/S
[flower carving hands-on] interesting music visualization project (11) --ws2812 magic ribbon
3438. Number system conversion
MMRotate从零开始训练自己的数据集
FPGA (VGA Protocol Implementation)
开户有需要特别要注意什么?请问手机开户股票开户安全吗?
GYM103660E. Disjoint path on tree count
Li Hongyi machine learning introduction -2022.07.11
Wechat applet 6 cloud development cloud database
Performance design of distributed transaction
Notepad++实用功能分享(正则行尾行首替换常用方法、文本比对功能等)
堆栈的实现之顺序存储,链式存储
Raw Socket
2034: [蓝桥杯2022初赛] 修剪灌木
Codeforces Round #807 (Div. 2) E. Mark and Professor Koro 二进制/线段树
ORA-00054
2021牛客多校训练营5(B题)








![[microservice] microservice learning note 3: use feign to replace resttemplate to complete remote call](/img/e6/b2f328a8e5ec3becdb9f934d041182.png)