当前位置:网站首页>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.*:
边栏推荐
- What are the functions of Yunna fixed assets management system?
- DEJA_VU3D - Cesium功能集 之 055-国内外各厂商地图服务地址汇总说明
- FFT learning notes (I think it is detailed)
- 7.5 simulation summary
- 【二叉搜索树】增删改查功能代码实现
- Asynchronous task Whenall timeout - Async task WhenAll with timeout
- 微信小程序---WXML 模板语法(附带笔记文档)
- AtCoder Beginner Contest 254【VP记录】
- 18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
- Recognize the small experiment of extracting and displaying Mel spectrum (observe the difference between different y_axis and x_axis)
猜你喜欢
[online chat] the original wechat applet can also reply to Facebook homepage messages!
XML configuration file (DTD detailed explanation)
Mysql - CRUD
Browser local storage
18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
AtCoder Beginner Contest 258【比赛记录】
Hudi of data Lake (2): Hudi compilation
Hardware and interface learning summary
行列式学习笔记(一)
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)
随机推荐
2022.7.5-----leetcode. seven hundred and twenty-nine
Effet Doppler (déplacement de fréquence Doppler)
Tools to improve work efficiency: the idea of SQL batch generation tools
Huawei equipment is configured with OSPF and BFD linkage
Ffmpeg learning - core module
Zhuan: in the future, such an organization can withstand the risks
[Chongqing Guangdong education] Chongqing Engineering Vocational and Technical College
QT QPushButton details
MySQL functions
Go learning - dependency injection
shardingsphere源码解析
18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)
Upgrade openssl-1.1.1p for openssl-1.0.2k
Browser local storage
云呐|公司固定资产管理系统有哪些?
Global and Chinese market of water heater expansion tank 2022-2028: Research Report on technology, participants, trends, market size and share
QT -- thread
Key structure of ffmpeg - avformatcontext
"14th five year plan": emphasis on the promotion of electronic contracts, electronic signatures and other applications
Miaochai Weekly - 8