Match pattern not containing subpattern in between
I can't figure out how to match a pattern with the following structure:
; <anything that is not the word "for" or ":="> :=
in one swoop. I can do it with two searches (first find ;, then search
in the substring starting just after the semicolon), but can it be done
with one regex?
'...; for i := ...' must not match the pattern;
'for ...; x := ...; for ...' must match the pattern.
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.