当前位置:网站首页>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.*:
边栏推荐
- Atcoder beginer contest 258 [competition record]
- Global and Chinese markets for hinged watertight doors 2022-2028: Research Report on technology, participants, trends, market size and share
- The global and Chinese markets of dial indicator calipers 2022-2028: Research Report on technology, participants, trends, market size and share
- openssl-1.0.2k版本升级openssl-1.1.1p
- JS 这次真的可以禁止常量修改了!
- Shardingsphere source code analysis
- Go learning - dependency injection
- 【在线聊天】原来微信小程序也能回复Facebook主页消息!
- VBA fast switching sheet
- Codeforces Round #804 (Div. 2)【比赛记录】
猜你喜欢

Upgrade openssl-1.1.1p for openssl-1.0.2k

Problems encountered in the database

上门预约服务类的App功能详解
![[designmode] Decorator Pattern](/img/65/457e0287383d0ca9a28703a63b4e1a.png)
[designmode] Decorator Pattern

18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)

Senparc. Weixin. Sample. MP source code analysis

"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications

软件测试工程师必会的银行存款业务,你了解多少?

STM32 configuration after chip replacement and possible errors

Problem solving win10 quickly open ipynb file
随机推荐
Cloudcompare & PCL point cloud randomly adds noise
Codeforces Round #804 (Div. 2)【比赛记录】
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
云呐|固定资产管理系统功能包括哪些?
Go learning --- structure to map[string]interface{}
Key structure of ffmpeg - avframe
7.5 装饰器
Huawei equipment configuration ospf-bgp linkage
MySQL之函数
【DesignMode】适配器模式(adapter pattern)
MySql——CRUD
QT a simple word document editor
Start from the bottom structure and learn the introduction of fpga---fifo IP core and its key parameters
Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
Atcoder beginer contest 258 [competition record]
LeetCode 8. String conversion integer (ATOI)
【luogu P3295】萌萌哒(并查集)(倍增)
What is information security? What is included? What is the difference with network security?
【QT】Qt使用QJson生成json文件并保存
[Luogu p3295] mengmengda (parallel search) (double)