Strange behavior with \@<! when used with \d

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange behavior with \@<! when used with \d

Hopkins, Jason (GE Healthcare)
It appears the ! in \@<! is causing \d to reverse behavior.

Example:
<TD><FONT>2</FONT></TD>
        <TD>270</TD>

When I run:
\(\d\)\@<!\(<\/TD>\)

I match on the top line's </TD>

When I run:
\(\D\)\@<!\(<\/TD>\)

I match on the bottom line's </TD>

I would think it should be the other way around.

I'm not real clear on the usage of the \@ searches.  I don't find the
help examples very clear.  Especially on "\@>".  If you know of any good
places to learn about this please let me know.  I ran across something
in the VIM Tips, but I cannot find it again!
Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior with @<! when used with d

Marian Csontos
On Mon, 03 Oct 2005 18:50:13 +0200, Hopkins, Jason (GE Healthcare)  
<[hidden email]> wrote:

> It appears the ! in \@<! is causing \d to reverse behavior.

Yes, it is exactly what it does. If you want normal behaviour you should  
use \@<= instead.

Regards

-- Marian


________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com