当前位置:网站首页>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.*:
边栏推荐
- FFT 学习笔记(自认为详细)
- MySQL之函数
- Hudi of data Lake (1): introduction to Hudi
- Add noise randomly to open3d point cloud
- About the slmgr command
- Atcoder beginer contest 254 [VP record]
- Configuring OSPF load sharing for Huawei devices
- Key structure of ffmpeg - avformatcontext
- MySql——CRUD
- 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

Ffmpeg learning - core module

从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍

After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!

【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)

Mysql - CRUD

Problem solving win10 quickly open ipynb file

Senparc. Weixin. Sample. MP source code analysis

LeetCode 1189. Maximum number of "balloons"

传输层协议------UDP协议
随机推荐
Key structure of ffmpeg -- AVCodecContext
What are the functions of Yunna fixed assets management system?
About the slmgr command
单商户V4.4,初心未变,实力依旧!
7.5 装饰器
Recognize the small experiment of extracting and displaying Mel spectrum (observe the difference between different y_axis and x_axis)
Detailed explanation of APP functions of door-to-door appointment service
Mathematical model Lotka Volterra
转:未来,这样的组织才能扛住风险
MySql——CRUD
Codeforces Round #804 (Div. 2)【比赛记录】
总结了 800多个 Kubectl 别名,再也不怕记不住命令了!
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
软件测试工程师必会的银行存款业务,你了解多少?
Priority queue (heap)
[designmode] composite mode
CloudCompare&PCL 点云随机添加噪声
PHP determines whether an array contains the value of another array
[designmode] Decorator Pattern
wx.getLocation(Object object)申请方法,最新版