On Dec 3, 1:47 pm, Gary <[email protected]> wrote: > I believe I've found a bug in the regular expression parsing. Given > the search pattern and text below, I'm not getting the behavior that I > expect. > > /\%(^\(\l[a-z0-9_]\{7}\).\{39}\)\@<=\1 > > Should be matching (only) this entire word, ------+ > and only on the first line. __|___ > / \ > producer 2000 producer > no_match 2000 producer > > ^ > | > Is matching both of these 'p's (only) ---------+
I don't know what's going on (it looks to me like it should work) but changing the \@<= to \zs at least does what you want. It does look like a bug, unless someone knows a strange feature of the \@<= zero-width match that prevents it from acting as expected. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
