Closed Bug 216591 Opened 21 years ago Closed 21 years ago

regexp match fails with this regexp, not in other browser (IE6, opera7 and NN4)

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 85721

People

(Reporter: okin7, Assigned: khanson)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1

everything is in other fields.

Reproducible: Always

Steps to Reproduce:
test the code :
var code = 'a {result.data.DATA} b';
alert(code.match(/\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}/gi));

Actual Results:  
alert box is empty

Expected Results:  
display {result.data.DATA}

this code works, but that's not exaclty the same regexp :

var code = 'a {result.data.DATA} b';
alert(code.match(/\{(([a-z0-9\-_]+\.)+?)([a-z0-9\-_]+?)\}/gi));
Confirming bug with current JS source. Testcase added to JS testsuite:

      mozilla/js/tests/ecma_3/RegExp/regress-216591.js
Assignee: rogerl → khanson
Status: UNCONFIRMED → NEW
Ever confirmed: true
Marking as a duplicate of bug 85721, "Regexp performance degraded from 4.7".
It is a complete rewrite of the JS Regexp engine, and will fix many bugs
like this one. 

The above testcase passes in the JS shell with the patch for bug 85721
applied, and it passes in the Rhino shell, where the patch has already
been checked in. 

*** This bug has been marked as a duplicate of 85721 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Verified duplicate.

Okin7: thank you for this report. You have been cc'ed on bug 85721
so you can follow progress on this issue -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.