[regex-coach] negative lookahead assertion bug?

Arian Hojat armyofda12mnkeys at gmail.com
Tue May 20 15:44:27 UTC 2008


Hello all,

had a question/possible bug report...
For the example on this webpage:
http://www.nuclearblender.com/leftovers/howto/regex/

this pattern is presented and i tried a positive lookup assertion which
worked, but this first negative one only matched the first pattern (global
option is on btw, so not sure why wont match).
Pattern: ([A-Z]-)(?![a-z]{3})([a-z0-9]* )
Text to lookup: A-xyz37 # B-ab6142 # C-Wxy66 # D-qrs93

Should match B-ab6142 and C-Wxy66 as they both (have a capital letter
followed by a dash), then (dont have 3 lower case letters), and (are
following by letters/numbers and a space)
only matches first one in the program.

Thanks, let me know if it should match only one if im wrong. Running latest
version on Windows XP.
Great Tool!
Arian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/regex-coach/attachments/20080520/d6459e88/attachment.html>


More information about the regex-coach mailing list