gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Regexp] Precedence of Left + vs. Right [^]


From: Dennis W. Bulgrien
Subject: [Regexp] Precedence of Left + vs. Right [^]
Date: Thu, 15 Jan 2004 08:09:41 -0600

The expression "[ab]+[^c]" finds "aac"; even though the '+' was suppose to
account for both 'a's, the not-'c' found the second 'a' and matched, to my
un-expectations.  I thought the '+' would have higher precedence (left to right)
than the negated character set because it is first.  How would this be
rewritten?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]