当前位置:网站首页>Notepad++ regular expression replacement string
Notepad++ regular expression replacement string
2022-07-06 00:16:00 【one billion three hundred and ninety million eight hundred and 】
Be careful :Notepad++ The maximum length of regular expression string cannot exceed 69 Characters 
expression explain
/t tabs .
/n New line .
. Match any character .
| Match the characters to the left and right of the expression . for example , "ab|bc" matching "ab" perhaps "bc".
[] Match any single character in the list . for example , "[ab]" matching "a" perhaps "b". "[0-9]" Match any number .
[^] Match any single character outside the list . for example , "[^ab]" matching "a" and "b" Characters other than . "[^0-9]" Match any non numeric character .
* The character on the left is matched any number of times (0 Time , Or many times ). for example "be*" matching "b", "be" perhaps "bee".
+ The character to the left of it is matched at least once (1 Time , Or many times ). for example "be+" matching "be" perhaps "bee" But it doesn't match "b".
? The character on the left is matched 0 Time or 1 Time . for example "be?" matching "b" perhaps "be" But it doesn't match "bee".
^ The expression on the right is matched at the beginning of a line . for example "^A" Just match to "A" Beginning line .
$ The expression on the left is matched at the end of a line . for example "e$" Just match to "e" The line at the end .
() Affects the order in which expressions match , And used as a grouping marker for expressions .
/ Escape character . If you want to use it "/" In itself , Should be used "//".
contain “hello word” The line of
^.hello word.$
With “hello word” The first line
^hello word.*$
With “hello word” The line at the end
.*hello word$
Search result processing
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>
Remove the front Line
^.*Line.*:
边栏推荐
- notepad++正则表达式替换字符串
- Cloudcompare & PCL point cloud randomly adds noise
- How to solve the problems caused by the import process of ecology9.0
- Extracting profile data from profile measurement
- Atcoder beginer contest 258 [competition record]
- STM32 configuration after chip replacement and possible errors
- 微信小程序---WXML 模板语法(附带笔记文档)
- Detailed explanation of APP functions of door-to-door appointment service
- Configuring OSPF load sharing for Huawei devices
- Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
![Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]

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

上门预约服务类的App功能详解

How to solve the problems caused by the import process of ecology9.0
![[designmode] composite mode](/img/9a/25c7628595c6516ac34ba06121e8fa.png)
[designmode] composite mode

There is no network after configuring the agent by capturing packets with Fiddler mobile phones

Priority queue (heap)

Single merchant v4.4 has the same original intention and strength!

【二叉搜索树】增删改查功能代码实现

权限问题:source .bash_profile permission denied
随机推荐
Detailed explanation of APP functions of door-to-door appointment service
Key structure of ffmpeg -- AVCodecContext
QT QPushButton details
What is information security? What is included? What is the difference with network security?
USB Interface USB protocol
时区的区别及go语言的time库
【DesignMode】装饰者模式(Decorator pattern)
DEJA_ Vu3d - cesium feature set 055 - summary description of map service addresses of domestic and foreign manufacturers
【luogu CF487E】Tourists(圆方树)(树链剖分)(线段树)
LeetCode 1189. Maximum number of "balloons"
Senparc. Weixin. Sample. MP source code analysis
7.5模拟赛总结
openssl-1.0.2k版本升级openssl-1.1.1p
Doppler effect (Doppler shift)
Cloudcompare & PCL point cloud randomly adds noise
QT a simple word document editor
PV static creation and dynamic creation
Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
JS can really prohibit constant modification this time!
【luogu P3295】萌萌哒(并查集)(倍增)