当前位置:网站首页>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.*:
边栏推荐
- How much do you know about the bank deposit business that software test engineers must know?
- Huawei equipment configuration ospf-bgp linkage
- MySQL之函数
- DEJA_ Vu3d - cesium feature set 055 - summary description of map service addresses of domestic and foreign manufacturers
- JS can really prohibit constant modification this time!
- [designmode] composite mode
- FFmpeg学习——核心模块
- Global and Chinese markets of POM plastic gears 2022-2028: Research Report on technology, participants, trends, market size and share
- Detailed explanation of APP functions of door-to-door appointment service
- JS 这次真的可以禁止常量修改了!
猜你喜欢
Key structure of ffmpeg - avformatcontext
Single merchant v4.4 has the same original intention and strength!
Mathematical model Lotka Volterra
Permission problem: source bash_ profile permission denied
Atcoder beginer contest 254 [VP record]
Miaochai Weekly - 8
上门预约服务类的App功能详解
Ffmpeg learning - core module
【在线聊天】原来微信小程序也能回复Facebook主页消息!
Zhongjun group launched electronic contracts to accelerate the digital development of real estate enterprises
随机推荐
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
About the slmgr command
Permission problem: source bash_ profile permission denied
mysql-全局锁和表锁
FFMPEG关键结构体——AVCodecContext
Mysql - CRUD
LeetCode 6005. The minimum operand to make an array an alternating array
LeetCode 8. String conversion integer (ATOI)
Extracting profile data from profile measurement
7.5 simulation summary
Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
DEJA_ Vu3d - cesium feature set 055 - summary description of map service addresses of domestic and foreign manufacturers
传输层协议------UDP协议
wx. Getlocation (object object) application method, latest version
Configuring OSPF load sharing for Huawei devices
转:未来,这样的组织才能扛住风险
第16章 OAuth2AuthorizationRequestRedirectWebFilter源码解析
Single merchant v4.4 has the same original intention and strength!
【在线聊天】原来微信小程序也能回复Facebook主页消息!
Problems encountered in the database