Thursday, December 3, 2009

Regular expression bug?

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.

(convert to monospace font...)

/\%(^\(\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) ---------+

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

No comments: