On Oct 30, 3:49 pm, Andy Wokula <[EMAIL PROTECTED]> wrote:
> Andy Wokula schrieb:
>
> > On the pattern:
> > IIUC, you want a match for
> >     /MAIL FROM:\_.\{-}Winsock
>
> > that has to fail if "----------" is contained in the match.
>
> > You could try these patterns:
> >     /MAIL FROM:\%(\%(----------\)[EMAIL PROTECTED])\{-}Winsock
> >     " at each position, make sure there is no match for ----------
>
> > or
> >     /MAIL FROM:.*\%(\%(----------\)\@<!\n.*\)*.*Winsock
>
> of course better: '\{-}' instead of '*' :
>     /MAIL FROM:.*\%(\%(----------\)\@<!\n.*\)\{-}.*Winsock
>
> >     " make sure there is no match for ---------- before a line break
>
> > Another (IMHO new!?) idea: check out the following pattern on the
> > next sentence:
> >     /A.\{-}\%(\zsA.*\)\@<=N
>
> Ok, this doesn't help on the problem, because /\@<= cannot look back
> over line breaks.
>
> > As AlwAys these Are oNly A few suggestioNs.
>
> > Matches are "Are oN" and "A few suggestioN" (esp. the first match is
> > interesting).
>

What about the [EMAIL PROTECTED] zero-width match? Maybe something like this 
would
work:

/word1\%(\%(word1\|word2\)[EMAIL PROTECTED])\+word2
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to