当前位置:网站首页>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.*:
边栏推荐
- Go learning --- structure to map[string]interface{}
- Atcoder beginer contest 258 [competition record]
- Knowledge about the memory size occupied by the structure
- 【DesignMode】组合模式(composite mode)
- How to solve the problems caused by the import process of ecology9.0
- Key structure of ffmpeg - avframe
- Asynchronous task Whenall timeout - Async task WhenAll with timeout
- Solve the problem of reading Chinese garbled code in sqlserver connection database
- 2022.7.5-----leetcode. seven hundred and twenty-nine
- What are Yunna's fixed asset management systems?
猜你喜欢

FFT learning notes (I think it is detailed)

GD32F4xx uIP协议栈移植记录

妙才周刊 - 8
![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]

The difference of time zone and the time library of go language

Hudi of data Lake (1): introduction to Hudi

Transport layer protocol ----- UDP protocol

云呐|固定资产管理系统功能包括哪些?

行列式学习笔记(一)

Knowledge about the memory size occupied by the structure
随机推荐
微信小程序---WXML 模板语法(附带笔记文档)
USB Interface USB protocol
Gd32f4xx UIP protocol stack migration record
FFMPEG关键结构体——AVCodecContext
What are the functions of Yunna fixed assets management system?
亲测可用fiddler手机抓包配置代理后没有网络
Add noise randomly to open3d point cloud
关于slmgr命令的那些事
硬件及接口学习总结
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
NSSA area where OSPF is configured for Huawei equipment
提升工作效率工具:SQL批量生成工具思想
7.5模拟赛总结
JS 这次真的可以禁止常量修改了!
FFT 学习笔记(自认为详细)
18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
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?
Global and Chinese market of digital serial inverter 2022-2028: Research Report on technology, participants, trends, market size and share
Solve the problem of reading Chinese garbled code in sqlserver connection database
Problems encountered in the database