亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

linux - find string in vim
過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng) 2017-06-26 10:49:52
0
3
1651

Use vim to view a document, which contains the following strings:

complete[13]
complete[4]
complete[1]                                                              
complete[3]
abc[13]
13
4
1
3

How to find the first string that is not complete[13] and complete[3]?

過(guò)去多啦不再A夢(mèng)
過(guò)去多啦不再A夢(mèng)

reply all(3)
小葫蘆

Available for personal testing

/^\(.*complete\[\(3\|13\)\]\)\@!.*

Please refer to: Detailed explanation of @

大家講道理

If the string you are looking for is on a separate line and at the beginning of the line, as in the example, use
^(complete[(13|3)])@!
If you want to find a line that is not complete[ 13] or 3
sw(complete[(13|3)])@!

小葫蘆

/complete[13] and /complete[3] /string are searching for a certain string. But searching for the first one is not. I don’t know. I didn’t see the question clearly.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template