Hi,

Yes, there is: 
.*bar\&.*foo

See ":help /branch".

Best,
Marcin

On 05:53 Sat 17 Dec     , Robert Chan wrote:
> I'm wondering if there's a more compact way to match both 'foo' and 'bar'
> appearing on the same line than:  \(foo*bar\)\|\(bar*foo\)
> 
> I also intend to match more than two terms, so I need something more
> compact. Eg., \(term1*term2*term3\) ...etc...
> 
> There's a reference to "a non-consuming regular expression" at
> stackoverflow, but I am unsure if its available in vim or if it's even the
> most economical way to write the pattern.
> 
> Reference:
> http://stackoverflow.com/questions/469913/regular-expressions-is-there-an-and-operator
> 
> Any ideas?
> 
> -- 
> 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 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

Reply via email to