[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: This simple regex doesn't work -- bug?
From:       "Suresh Govindachar" <sgovindachar () yahoo ! com>
Date:       2004-03-31 16:15:18
Message-ID: 008a01c4173d$07ef8c80$0e9bfea9 () icidev
[Download RAW message or body]

Benji Fisher wrote:
>>On Tue, Mar 30, 2004 at 09:37:23PM -0800, Suresh Govindachar wrote:
>> 
>> Thanks for the explanation -- I was thinking of
>> "[^\t]" as "do not match a tab" rather than as 
>> "match anything except a tab" and so did not
>> realize that it actually matched something!
>> 
>> --Suresh
>
> If you want "do not match a tab," try '\t\@!' or
> '\t\@<!' instead of '[^\t]'.  Both of these are
> zero-width operators.
>
> :help /\@<!  
> :help /zero-width

Thanks,  this feature makes it easier to think about
what I am trying to match.

--Suresh



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic