当前位置:网站首页>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.*:
边栏推荐
- LeetCode 8. String conversion integer (ATOI)
- Open source CRM customer relationship system management system source code, free sharing
- USB Interface USB protocol
- Configuring OSPF GR features for Huawei devices
- 18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
- 第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
- Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
- 跟着CTF-wiki学pwn——ret2libc1
- Miaochai Weekly - 8
- Laser slam learning record
猜你喜欢
There is no network after configuring the agent by capturing packets with Fiddler mobile phones
Ffmpeg learning - core module
Gd32f4xx UIP protocol stack migration record
[binary search tree] add, delete, modify and query function code implementation
GD32F4xx uIP协议栈移植记录
微信小程序---WXML 模板语法(附带笔记文档)
Detailed explanation of APP functions of door-to-door appointment service
NSSA area where OSPF is configured for Huawei equipment
权限问题:source .bash_profile permission denied
亲测可用fiddler手机抓包配置代理后没有网络
随机推荐
Senparc. Weixin. Sample. MP source code analysis
Key structure of ffmpeg - avframe
shardingsphere源码解析
VBA fast switching sheet
Hudi of data Lake (2): Hudi compilation
Global and Chinese markets for pressure and temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
2022.7.5-----leetcode. seven hundred and twenty-nine
【DesignMode】组合模式(composite mode)
单商户V4.4,初心未变,实力依旧!
Laser slam learning record
Transport layer protocol ----- UDP protocol
N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)
JS can really prohibit constant modification this time!
QT--线程
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?
Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
LeetCode 1189. Maximum number of "balloons"
LeetCode 6004. Get operands of 0
Yunna | what are the main operating processes of the fixed assets management system