Am 10.03.2010 22:20, schrieb James Beck:
Try:
^\(\(\<CODE\>\)\...@!.\)*$
That is:
lines: ^___$
...that consist of 0 or more characters \(___.\)*
...at which the word CODE: \<CODE\>
...is not matched: \(___\)\...@!
Thank you. That worked perfectly.
Regular expressions are tricky.
James
There is also DrChip's LogiPat script to create such patterns:
http://vim.sf.net/scripts/script.php?script_id=1290
For example,
:LogiPat !"CODE"
searches for /^\%(\%(CODE\)\...@!.\)*$
--
Andy
--
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