Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用这样的规则:
:0 B * Something[[:space:]]+whatever
但它不起作用。
当我将 [[:space:]] 更改为文字空格字符时:
:0 B * Something +whatever
有用。
它也适用于以下情况:
:0 B * Something[ ]+whatever
我一定是做错了什么,但真的找不到。有什么提示吗?
在要匹配的类中添加空格字符怎么样:
[ \t\r\n]
匹配空格、制表符、回车和换行。
当然还有更多的空白字符,但这些是最常用的。