I need to match lines using g// (not v//); those lines having
'foo' and NOT having /)\s*;/ anywhere in the line. How do I write such regex.

I think I need to use \&
                 ^.*foo\&^XXX$
and then put, in place of XXX, the pattern that
matches anything not containing /)\s*;/. How do I express it in vim.

Yakov

I'd write \([^)]\|)\S\|)\s*[^;]\) failing other things.

Reply via email to