当前位置:网站首页>vim跨行匹配搜索
vim跨行匹配搜索
2022-07-26 08:15:00 【cy413026】
目录
vim跨行搜索 匹配_XtremeDV的博客-CSDN博客_vim跨行匹配
/^abcd表示在一行的开头找到abcd,/abcd$表示在一行的结尾找到abcd。 但是,在/abcd^efgh和/abcd$efgh中,^和$只是普通字符,没有特殊含义。 相比之下,以下每一项在搜索模式中都具有特殊的含义。
\ n换行符(行尾)
\ _s是一个空格(空格或制表符)或换行符
\ _ ^开始一行(零宽度)
\ _ $一行的结束(零宽度)
\ _. 任何字符,包括换行符
示例:
(1) /abcd\n*efgh
查找abcd,接着是零个或多个换行符,然后是efgh。
查找abcdefgh或abcd后跟空行和efgh。
空行必须是空的(没有空格或制表符)。
(2) /abcd\_s*efgh
查找abcd后面跟随任何空格或换行符然后efgh。
查找abcdefgh或abcd后跟空行和efgh。
空行可以包含任意数量的空格或制表符。
(3) /abcd\_$\_s*efgh
在行末查找abcd,后面跟随任何空格或换行符,然后efgh。
abcd后面必须没有字符(换行符除外)。
在efgh之前,可以有任意数量的空格,制表符或换行符。
(4) /abcd\_s*\_^efgh
查找abcd后跟任何空格或换行符,然后在efgh开始一行。
在efgh之前,不得有任何字符(除了换行符)。
abcd后可以有任意数量的空格,制表符或换行符。
(5) /abcd\_.\{-}efgh
找到abcd后跟任何字符或换行符(尽可能少),然后efgh。这种就是abcd和efgh之间可以跨越多行中间可以是任何字符
查找abcdefgh或abcd后跟任何字符,然后选择efgh。
边栏推荐
- 【EndNote】文献类型与文献类型缩写汇编
- 我,35岁了。
- Why don't you tell me what long polling is?
- C# WinForm中PreviewKeyDown、KeyDown、KeyPress、KeyUp区别与联系
- 2022/7/6 exam summary
- Oracle 常用函数
- Zroi easy sum (generating function, block, DP, combination, polynomial)
- If the thread crashes, why doesn't it cause the JVM to crash? What about the main thread?
- The difference between LinkedList and ArrayList
- 2w字详解数据湖:概念、特征、架构与案例
猜你喜欢
分享高压超低噪声LDO测试结果(High Voltage Ultra-low Noise LDO)

Use js to count the number of occurrences of each string in the string array, and format it into an object array.

Burp suite Chapter 9 how to use burp repeater

关于期刊论文所涉及的一些概念汇编+期刊查询方法

要不你给我说说什么是长轮询吧?

CentOS install mysql5.7

Burp suite Chapter 5 how to use burp target

Burp Suite-第四章 SSL和Proxy高级选项

Stack simulation queue

小蜜蜂吉他谱 高八度和低八度
随机推荐
Summary of common methods of string
2022/7/12 exam summary
What are the differences between FileInputStream and bufferedinputstream?
How WPS sets page headers page by page
第三天作业
SPSS uses kmeans, two-stage clustering and RFM model to study the behavior law data of borrowers and lenders in P2P network finance
2w字详解数据湖:概念、特征、架构与案例
A tutorial for mastering MySQL database audit characteristics, implementation scheme and audit plug-in deployment
Burp suite Chapter 7 how to use burp scanner
The difference between overloading and rewriting
苹果强硬新规:用第三方支付也要抽成,开发者亏大了!
2022/7/7 exam summary
Burp suite Chapter 3 how to use burp suite agent
Regular expression job
File parsing (JSON parsing)
Burp Suite-第五章 如何使用Burp Target
Unity metaverse (II), mixamo & animator hybrid tree and animation fusion
Web side 3D visualization engine hoops communicator reads 10g super large model test | digital twin Technology
关于期刊论文所涉及的一些概念汇编+期刊查询方法
Burp Suite-第一章 Burp Suite 安装和环境配置