当前位置:网站首页>notepad++正则表达式替换字符串
notepad++正则表达式替换字符串
2022-07-06 00:11:00 【1390811049】
注意:Notepad++正则表达式字符串最长不能超过69个字符
表达式 说明
/t 制表符.
/n 新行.
. 匹配任意字符.
| 匹配表达式左边和右边的字符. 例如, "ab|bc" 匹配 "ab" 或者 "bc".
[] 匹配列表之中的任何单个字符. 例如, "[ab]" 匹配 "a" 或者 "b". "[0-9]" 匹配任意数字.
[^] 匹配列表之外的任何单个字符. 例如, "[^ab]" 匹配 "a" 和 "b" 以外的字符. "[^0-9]" 匹配任意非数字字符.
* 其左边的字符被匹配任意次(0次,或者多次). 例如 "be*" 匹配 "b", "be" 或者 "bee".
+ 其左边的字符被匹配至少一次(1次,或者多次). 例如 "be+" 匹配 "be" 或者 "bee" 但是不匹配 "b".
? 其左边的字符被匹配0次或者1次. 例如 "be?" 匹配 "b" 或者 "be" 但是不匹配 "bee".
^ 其右边的表达式被匹配在一行的开始. 例如 "^A" 仅仅匹配以 "A" 开头的行.
$ 其左边的表达式被匹配在一行的结尾. 例如 "e$" 仅仅匹配以 "e" 结尾的行.
() 影响表达式匹配的顺序,并且用作表达式的分组标记.
/ 转义字符. 如果你要使用 "/" 本身, 则应该使用 "//".
包含“hello word”的行
^.hello word.$
以“hello word”开始的行
^hello word.*$
以“hello word”结尾的行
.*hello word$
搜索结果处理
Line 8: </item><item> <word>social media</word>
Line 15: </item><item> <word>constant</word>
Line 24: </item><item> <word>row</word>
Line 33: </item><item> <word>approach</word>
Line 41: </item><item> <word>exam</word>
Line 48: </item><item> <word>alarm</word>
Line 56: </item><item> <word>obviously</word>
Line 63: </item><item> <word>urgently</word>
去除前面的 Line
^.*Line.*:
边栏推荐
- JS 这次真的可以禁止常量修改了!
- 妙才周刊 - 8
- Problem solving win10 quickly open ipynb file
- 多普勒效应(多普勒频移)
- Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
- LeetCode 1189. Maximum number of "balloons"
- CloudCompare&PCL 点云随机添加噪声
- Chapter 16 oauth2authorizationrequestredirectwebfilter source code analysis
- Configuring OSPF load sharing for Huawei devices
- Initialize your vector & initializer with a list_ List introduction
猜你喜欢
[designmode] Decorator Pattern
Senparc. Weixin. Sample. MP source code analysis
关于slmgr命令的那些事
云呐|公司固定资产管理系统有哪些?
微信小程序---WXML 模板语法(附带笔记文档)
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
Permission problem: source bash_ profile permission denied
PV static creation and dynamic creation
[binary search tree] add, delete, modify and query function code implementation
随机推荐
Senparc. Weixin. Sample. MP source code analysis
Mathematical model Lotka Volterra
云呐|固定资产管理系统功能包括哪些?
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
QT QPushButton details
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
There is no network after configuring the agent by capturing packets with Fiddler mobile phones
The global and Chinese markets of dial indicator calipers 2022-2028: Research Report on technology, participants, trends, market size and share
【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
Qt QPushButton详解
Permission problem: source bash_ profile permission denied
Chapter 16 oauth2authorizationrequestredirectwebfilter source code analysis
云呐|固定资产管理系统主要操作流程有哪些
如何解决ecology9.0执行导入流程流程产生的问题
7.5 simulation summary
LeetCode 6006. Take out the least number of magic beans
LeetCode 6005. The minimum operand to make an array an alternating array
Browser local storage
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
Initialize your vector & initializer with a list_ List introduction