当前位置:网站首页>Notepad + + regular expression replace String
Notepad + + regular expression replace String
2022-07-06 00:16:00 【139081049】
Attention!:Notepad++La longueur maximale de la chaîne d'expression régulière ne peut dépasser69Caractères
Expression Description
/t Tabulation.
/n Nouvelle ligne.
. Correspond à n'importe quel caractère.
| Correspond aux caractères à gauche et à droite de l'expression. Par exemple, "ab|bc" Ça correspond "ab" Ou "bc".
[] Correspond à n'importe quel caractère de la liste. Par exemple, "[ab]" Ça correspond "a" Ou "b". "[0-9]" Correspond à n'importe quel nombre.
[^] Correspond à n'importe quel caractère en dehors de la liste. Par exemple, "[^ab]" Ça correspond "a" Et "b" Autres caractères. "[^0-9]" Correspond à n'importe quel caractère non numérique.
* Le caractère à gauche correspond à n'importe quelle fois(0Une fois,Ou plusieurs fois). Par exemple "be*" Ça correspond "b", "be" Ou "bee".
+ Le caractère à gauche correspond au moins une fois(1Une fois,Ou plusieurs fois). Par exemple "be+" Ça correspond "be" Ou "bee" Mais ça ne correspond pas "b".
? Les caractères à gauche correspondent0Une fois ou1Une fois. Par exemple "be?" Ça correspond "b" Ou "be" Mais ça ne correspond pas "bee".
^ L'expression à droite correspond au début d'une ligne. Par exemple "^A" Juste pour correspondre à "A" Ligne de début.
$ L'expression à gauche correspond à la fin d'une ligne . Par exemple "e$" Juste pour correspondre à "e" Fin de la ligne.
() Influence l'ordre dans lequel les expressions correspondent , Et utilisé comme marqueur de groupe pour l'expression .
/ Caractère d'évasion. Si vous utilisez "/" En soi, Doit être utilisé "//".
Contient“hello word”Oui.
^.hello word.$
Par“hello word”Ligne de départ
^hello word.*$
Par“hello word”Fin de la ligne
.*hello word$
Traitement des résultats de la recherche
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>
Enlevez l'avant Line
^.*Line.*:
边栏推荐
- Configuring OSPF GR features for Huawei devices
- VBA fast switching sheet
- FFMPEG关键结构体——AVCodecContext
- Miaochai Weekly - 8
- 多普勒效應(多普勒頻移)
- [Luogu p3295] mengmengda (parallel search) (double)
- GD32F4xx uIP协议栈移植记录
- LeetCode 8. String conversion integer (ATOI)
- 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
- Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
Senparc. Weixin. Sample. MP source code analysis
教你在HbuilderX上使用模拟器运行uni-app,良心教学!!!
单商户V4.4,初心未变,实力依旧!
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
云呐|固定资产管理系统主要操作流程有哪些
AtCoder Beginner Contest 254【VP记录】
MySql——CRUD
Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
STM32 configuration after chip replacement and possible errors
Effet Doppler (déplacement de fréquence Doppler)
随机推荐
C # input how many cards are there in each of the four colors.
Atcoder beginer contest 258 [competition record]
Add noise randomly to open3d point cloud
Solve the problem of reading Chinese garbled code in sqlserver connection database
China Jinmao online electronic signature, accelerating the digitization of real estate business
What are Yunna's fixed asset management systems?
DEJA_ Vu3d - cesium feature set 055 - summary description of map service addresses of domestic and foreign manufacturers
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?
Miaochai Weekly - 8
STM32 configuration after chip replacement and possible errors
NSSA area where OSPF is configured for Huawei equipment
Ffmpeg learning - core module
FFMPEG关键结构体——AVCodecContext
Hardware and interface learning summary
JS can really prohibit constant modification this time!
Doppler effect (Doppler shift)
Senparc.Weixin.Sample.MP源码剖析
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
Problem solving win10 quickly open ipynb file
行列式学习笔记(一)