On 24/12/09 17:25, Charles Campbell wrote:
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


In this particular case, the solution (the opposite-pattern) can be simplified, since "a line which doesn't contain «one or more digits»" is "a line with no digits in it" is "a line consisting only of zero or more non-digits" which gives

        ^\D*$

Best regards,
Tony.
--
The grand leap of the whale up the Fall of Niagara is esteemed, by all
who have seen it, as one of the finest spectacles in nature.
                -- Benjamin Franklin.

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

Reply via email to