当前位置:网站首页>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.*:
边栏推荐
- AtCoder Beginner Contest 254【VP记录】
- Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
- Initialiser votre vecteur & initialisateur avec une liste Introduction à la Liste
- 云呐|公司固定资产管理系统有哪些?
- 用列錶初始化你的vector&&initializer_list簡介
- LeetCode 6004. Get operands of 0
- 【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
- Open3D 点云随机添加噪声
- [designmode] Decorator Pattern
- Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
用列錶初始化你的vector&&initializer_list簡介
What if the C disk is not enough? Let's see how I can clean up 25g of temp disk space after I haven't redone the system for 4 years?
FFT learning notes (I think it is detailed)
PV static creation and dynamic creation
【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
Wechat applet -- wxml template syntax (with notes)
时区的区别及go语言的time库
What are Yunna's fixed asset management systems?
微信小程序---WXML 模板语法(附带笔记文档)
Gavin teacher's perception of transformer live class - rasa project actual combat e-commerce retail customer service intelligent business dialogue robot system behavior analysis and project summary (4
随机推荐
【luogu CF487E】Tourists(圆方树)(树链剖分)(线段树)
Key structure of ffmpeg - avframe
多普勒效應(多普勒頻移)
shardingsphere源码解析
Learn PWN from CTF wiki - ret2libc1
Global and Chinese markets for hinged watertight doors 2022-2028: Research Report on technology, participants, trends, market size and share
Miaochai Weekly - 8
转:未来,这样的组织才能扛住风险
SQLServer连接数据库读取中文乱码问题解决
QT--线程
Codeforces Round #804 (Div. 2)【比赛记录】
[designmode] composite mode
Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
Initialize your vector & initializer with a list_ List introduction
Global and Chinese market of valve institutions 2022-2028: Research Report on technology, participants, trends, market size and share
What are Yunna's fixed asset management systems?
Huawei equipment is configured with OSPF and BFD linkage
Determinant learning notes (I)
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
What are the functions of Yunna fixed assets management system?