Thursday, December 24, 2009

Re: Opposite of a pattern

epanda wrote:
> Hi,
>
>
> I would like to know the opposite of this pattern in order to use it
> into a plist command
>
> pattern = \((\d\+)\)
>
IIUC, you want a pattern that matches all lines that don't have (one or
more digits) in it. Using LogiPat, I get

^\%(\%((\d\+)\)\@!.\)*$

(used echo LogiPat('!"(\d\+)"') )

You can get the latest LogiPat.vim from

http://mysite.verizon.net/astronaut/vim/index.html#LOGIPAT
(cutting edge)
http://vim.sourceforge.net/scripts/script.php?script_id=1290 (stable)

Regards,
Chip Campbell

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

No comments: