当前位置:网站首页>notepad++正則錶達式替換字符串
notepad++正則錶達式替換字符串
2022-07-06 00:15: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.*:
边栏推荐
- 第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
- 软件测试工程师必会的银行存款业务,你了解多少?
- Atcoder beginer contest 258 [competition record]
- 多普勒效應(多普勒頻移)
- Open3D 点云随机添加噪声
- MySQL functions
- "14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
- Shardingsphere source code analysis
- [day39 literature extensive reading] a Bayesian perspective on magnetic estimation
- Huawei equipment is configured with OSPF and BFD linkage
猜你喜欢

FFmpeg学习——核心模块

Extracting profile data from profile measurement

Start from the bottom structure and learn the introduction of fpga---fifo IP core and its key parameters

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

Configuring OSPF GR features for Huawei devices

AtCoder Beginner Contest 254【VP记录】
![[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)](/img/d6/c3128e26d7e629b7f128c551cd03a7.png)
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)

认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)

多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)

Huawei equipment configuration ospf-bgp linkage
随机推荐
XML configuration file (DTD detailed explanation)
选择致敬持续奋斗背后的精神——对话威尔价值观【第四期】
MySQL global lock and table lock
Recognize the small experiment of extracting and displaying Mel spectrum (observe the difference between different y_axis and x_axis)
[Luogu p3295] mengmengda (parallel search) (double)
About the slmgr command
18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)
【DesignMode】适配器模式(adapter pattern)
notepad++正则表达式替换字符串
NSSA area where OSPF is configured for Huawei equipment
How much do you know about the bank deposit business that software test engineers must know?
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
Effet Doppler (déplacement de fréquence Doppler)
[designmode] Decorator Pattern
Global and Chinese markets for pressure and temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
FFT learning notes (I think it is detailed)
云呐|固定资产管理系统主要操作流程有哪些
PHP determines whether an array contains the value of another array
QT--线程
OS i/o devices and device controllers