Regex to match a string with specific start/end

后端 未结 3 1110
深忆病人
深忆病人 2021-01-25 09:57

I\'m trying to match all occurrences of strings starting with -- and ending with a single space .

The file I\'m handling is the OpenVPN manual

3条回答
  •  梦谈多话
    2021-01-25 10:24

    foo.*bar
    

    here you will match everything beginning by foo and ending by bar

    then in your case try

    "--.* "
    

    just tested it in sublime text 3 it works

提交回复
热议问题