当前位置:网站首页>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.*:
边栏推荐
- Recognize the small experiment of extracting and displaying Mel spectrum (observe the difference between different y_axis and x_axis)
- Single merchant v4.4 has the same original intention and strength!
- 提升工作效率工具:SQL批量生成工具思想
- GD32F4xx uIP协议栈移植记录
- After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
- The difference of time zone and the time library of go language
- [Luogu p3295] mengmengda (parallel search) (double)
- Huawei equipment is configured with OSPF and BFD linkage
- AtCoder Beginner Contest 258【比赛记录】
- LeetCode 1598. Folder operation log collector
猜你喜欢
如何解决ecology9.0执行导入流程流程产生的问题
【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
【在线聊天】原来微信小程序也能回复Facebook主页消息!
数据库遇到的问题
China Jinmao online electronic signature, accelerating the digitization of real estate business
Hudi of data Lake (1): introduction to Hudi
MySQL functions
PV static creation and dynamic creation
硬件及接口学习总结
随机推荐
Ffmpeg learning - core module
JS 这次真的可以禁止常量修改了!
云呐|公司固定资产管理系统有哪些?
Classical concurrency problem: the dining problem of philosophers
【二叉搜索树】增删改查功能代码实现
[Chongqing Guangdong education] reference materials for Zhengzhou Vocational College of finance, taxation and finance to play around the E-era
7.5 decorator
JS can really prohibit constant modification this time!
微信小程序---WXML 模板语法(附带笔记文档)
7.5 simulation summary
Mysql - CRUD
Qt QPushButton详解
MySQL之函数
Go learning --- structure to map[string]interface{}
LeetCode 6005. The minimum operand to make an array an alternating array
Global and Chinese markets for hinged watertight doors 2022-2028: Research Report on technology, participants, trends, market size and share
GD32F4xx uIP协议栈移植记录
Configuring OSPF load sharing for Huawei devices
时区的区别及go语言的time库
MySql——CRUD