Wednesday, September 21, 2016

Match pattern not containing subpattern in between

Hello,
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?

E.g.

'...; for i := ...' must not match the pattern;
'for ...; x := ...; for ...' must match the pattern.

Thanks,
Nicola


--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment