Match pattern not containing subpattern in between

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Match pattern not containing subpattern in between

Nicola
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.