当前位置:网站首页>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。
边栏推荐
- Burp suite Chapter 9 how to use burp repeater
- Libevent custom event (asynchronous)
- vscode国内的镜像服务器加速
- 宇宙第一 IDE 霸主,换人了。。。
- Use js to count the number of occurrences of each string in the string array, and format it into an object array.
- [xshell7 free download and installation]
- Burp Suite-第六章 如何使用Burp Spider
- Reading and writing properties file
- 2022-07-09 group 5 Gu Xiangquan's learning notes day02
- Why is Google's internal tools not suitable for you?
猜你喜欢

【EndNote】文献模板编排语法详解

JSP built-in object (implicit object)

基础乐理 节奏联系题,很重要

Brief introduction to XML

Excel file reading and writing (creation and parsing)

SPSS uses kmeans, two-stage clustering and RFM model to study the behavior law data of borrowers and lenders in P2P network finance

Excel file parsing

苹果强硬新规:用第三方支付也要抽成,开发者亏大了!

2w字详解数据湖:概念、特征、架构与案例

BGP的基本配置
随机推荐
Dev gridcontrol captures key events
2022/7/7 exam summary
Common Oracle functions
Exam summary on June 27, 2022
Burp suite Chapter 5 how to use burp target
Exam summary on July 13, 2022
Matlab drawing black spots on two / three-dimensional drawings
给项目日志加上traceid
Idea settings set shortcut keys to convert English letters to case in strings
Burp Suite-第九章 如何使用Burp Repeater
vscode国内的镜像服务器加速
【 fastjson1.2.24反序列化漏洞原理代码分析】
2022/7/6 exam summary
Burp suite Chapter 7 how to use burp scanner
Add traceid to the project log
Using ordered dictionary to copy pcap files
一键部署LAMP和LNMP架构
IDEA settings设置快捷键实现字符串中的英文字母转大小写
外卖小哥,才是这个社会最大的托底
2022-07-09 group 5 Gu Xiangquan's learning notes day02