[Webkit-unassigned] [Bug 56082] New: Look-ahead assertions with back references don’t work as expected
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 10 01:57:21 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=56082
Summary: Look-ahead assertions with back references don’t work
as expected
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: markus.wulftange at gmail.com
There seems to be a bug with look-ahead assertions that use a back reference:
"P11".match(/^P([1-6])(?=\1)([1-6])$/)
This obviously should match as there is another 1 following the first 1 (matched string of the first group). In opposite to this, using a negated look-ahead assertion instead does match although there is another 1 following:
"P11".match(/^P([1-6])(?!\1)([1-6])$/)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list