亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 7843 | 回復(fù): 5
打印 上一主題 下一主題

vim如何查找同時(shí)存在某兩個(gè)單詞的行 [復(fù)制鏈接]

論壇徽章:
1
雙子座
日期:2015-01-04 14:25:06
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-05-24 11:39 |只看該作者 |倒序?yàn)g覽
單詞出現(xiàn)沒有先后順序

論壇徽章:
1
雙子座
日期:2015-01-04 14:25:06
2 [報(bào)告]
發(fā)表于 2011-05-24 12:40 |只看該作者
http://vim.wikia.com/wiki/Vim_Tips_Wiki:Imported_tips
Find two words in either order.
這里面有
可惜公司打不開

論壇徽章:
2
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34處女座
日期:2013-12-27 22:22:41
3 [報(bào)告]
發(fā)表于 2011-05-24 13:19 |只看該作者
Finding two words in either orderEdit Finding two words in either order sectionEdit

You can search for a line that contains two words, in any order. For example, the following pattern finds all lines that contain both "red" and "blue", in any order:

.*red\&.*blue

In a pattern, \& separates alternates, each of which has to match at the same position. The two alternates in this example are:

    .*red (will match all characters from the beginning of a line to the end of the last "red"); and
    .*blue (will match all characters from the beginning of a line to the end of the last "blue").

A line which contains both "red" and "blue" will match both alternates, starting at the beginning of the line. The pattern .*red\&.*blue finds the last alternate (but only if all alternates match at the same position), so if you are highlighting matches, you will see text matched by .*blue highlighted.

An alternative procedure is to use a pattern that explicitly finds "red" followed by "blue", or "blue" followed by "red":

\(red.*blue\)\|\(blue.*red\)

To search for lines that contain only the whole words "red" and "blue", in either order, use one of the following patterns:

.*\<red\>\&.*\<blue\>
\(\<red\>.*\<blue\>\)\|\(\<blue\>.*\<red\>\)

論壇徽章:
1
雙子座
日期:2015-01-04 14:25:06
4 [報(bào)告]
發(fā)表于 2011-05-24 13:40 |只看該作者
回復(fù) 3# tempname2


    謝謝

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2011-05-24 14:01 |只看該作者
回復(fù) 3# tempname2


    red.*blue\|blue.*red

論壇徽章:
2
天蝎座
日期:2014-03-28 10:18:052015年亞洲杯之烏茲別克斯坦
日期:2015-02-10 11:32:25
6 [報(bào)告]
發(fā)表于 2011-05-25 09:31 |只看該作者
正則表達(dá)式啊,lz
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP