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 and I want all options mentioned (e.g. --option).
I'm working with Sublime Text and according to its cheatsheet they support \A and \Z to denote start and end of strings.
Thus, I thought \A--.* \Z should match all strings, starting with -- and ending with .
However, this doesn't match anything at all.
What regex would match all strings, starting with a double dash and ending with a space character? Any occurrence, independent of its position should be matched.
--and ending with a space.