Monday, January 4, 2010

non-trivial regexp needed, please help

Hello VimWorld,
 
first, a Happy New Year to this wonderful list.
 
...but I have a problem, maybe you can help.
 
I am trying to put together a regexp to find pieces of text within one line, but I do not know their order.
 
So far,
/^.*sample1\|sample2.*sample2\|sample1
 
is my best bet but I am still not there.
Also, best if it would be flexible enough to support arbitrary number of samples without much typing.
 
Thank you in advance,
  Peter

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

No comments: