Monday, January 4, 2010

Re: non-trivial regexp needed, please help

On Mon, Jan 4, 2010 at 1:12 PM, Tim Chase wrote:
>> I am trying to put together a regexp to find pieces of text within one line,
>> but I do not know their order.
...
>> Also, best if it would be flexible enough to support arbitrary number of
>> samples without much typing.
>
> I don't think there's a natively nice way to do this

If I'm understanding the problem correctly, I think you're looking for \&

/.*apple\&.*banana\&.*carrot

See :help /\&

~Matt

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: