Last active
August 29, 2015 14:05
-
-
Save lstor/dd97a8aa7502c214c72a to your computer and use it in GitHub Desktop.
Vim regex examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^+[^+].*\zsbacon | |
; Explanation: | |
; / <- start search | |
; ^+ <- has a + at the beginning of the line | |
; [^+] <- does not have another + after that (avoid +++-lines) | |
; .* <- match anything up until... | |
; \zs <- start highlighted area (match) | |
; bacon <- what we're actually looking for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment