<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>7253</bug_id>
          
          <creation_ts>2006-02-14 11:36:04 -0800</creation_ts>
          <short_desc>Inline regex produces wrong results vs. creating new RegExp object</short_desc>
          <delta_ts>2006-10-27 09:49:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>417.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7445</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Parag Shah">pshah</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>ian</cc>
    
    <cc>markmalone</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32485</commentid>
    <comment_count>0</comment_count>
    <who name="Parag Shah">pshah</who>
    <bug_when>2006-02-14 11:36:04 -0800</bug_when>
    <thetext>Basically creating a regex like this:

var regex = /^([^#&lt;\u2264]+)([#&lt;\u2264])(.*)$/;

does not give any results vs. creating a regex like this:

var regex = new RegExp(&quot;^([^#&lt;\u2264]+)([#&lt;\u2264])(.*)$&quot;);


This probably isnt a bug in most cases but see attachment for narrowed down testcase where this is happening - comment out line 10 and uncomment line 9 (and vice versa) to see the bug. 

FF/IE work fine in both cases. Tested on Safari v2.0.3 (417.8) on OS X v10.4.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32486</commentid>
    <comment_count>1</comment_count>
      <attachid>6484</attachid>
    <who name="Parag Shah">pshah</who>
    <bug_when>2006-02-14 11:36:37 -0800</bug_when>
    <thetext>Created attachment 6484
Narrowed down testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32501</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-02-14 12:28:52 -0800</bug_when>
    <thetext>Confirmed with ToT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32503</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-02-14 12:37:17 -0800</bug_when>
    <thetext>Console log says:
KJS: pcre_compile() failed with &apos;PCRE does not support \L, \l, \N, \U, or \u&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32538</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-02-14 17:34:06 -0800</bug_when>
    <thetext>Maks posted a patch about this. Can&apos;t seem to find it right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32549</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-02-14 21:26:47 -0800</bug_when>
    <thetext>Probably bug 6257 - not sure if this should be marked as a duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54105</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-08-28 21:50:09 -0700</bug_when>
    <thetext>*** Bug 10611 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54127</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-08-29 04:53:51 -0700</bug_when>
    <thetext>Per Bug 10611 Comment #2, this bug is in Radar as:

rdar://4694011

Bug 10611 also has its own reduced test case.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49274</commentid>
    <comment_count>8</comment_count>
    <who name="W. Andy Carrel">wac</who>
    <bug_when>2006-10-27 08:40:13 -0700</bug_when>
    <thetext>The patch landed for bug 7445 (r17354) makes the reduction for this bug function properly. This should be marked as a duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49276</commentid>
    <comment_count>9</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-10-27 09:40:28 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; The patch landed for bug 7445 (r17354) makes the reduction for this bug
&gt; function properly. This should be marked as a duplicate.

It would probably be best to land the reduction (Attachment 6484) as a test before closing this bug.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49277</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-10-27 09:41:47 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; It would probably be best to land the reduction (Attachment 6484) as a test
&gt; before closing this bug.

Especially since the fix for Bug 7445 didn&apos;t include a layout test.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49278</commentid>
    <comment_count>11</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-10-27 09:49:33 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; It would probably be best to land the reduction (Attachment 6484 [edit]) as a test
&gt; &gt; before closing this bug.
&gt; 
&gt; Especially since the fix for Bug 7445 didn&apos;t include a layout test.

Test cases will be forthcoming for Bug 7445 per Bug 7445 Comment #18, so closing this as a duplicate per Comment #8.


*** This bug has been marked as a duplicate of 7445 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6484</attachid>
            <date>2006-02-14 11:36:37 -0800</date>
            <delta_ts>2006-02-14 11:36:37 -0800</delta_ts>
            <desc>Narrowed down testcase</desc>
            <filename>regex.html</filename>
            <type>text/html</type>
            <size>504</size>
            <attacher name="Parag Shah">pshah</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjx0aXRsZT48L3RpdGxlPg0KDQo8c2NyaXB0IGxhbmd1YWdlPSJqYXZh
c2NyaXB0Ij4NCg0KdmFyIHBhdHRlcm4gPSAiMjQjTWlkbmlnaHQiOw0KDQovL3ZhciByZWdleCA9
IG5ldyBSZWdFeHAoIl4oW14jPFx1MjI2NF0rKShbIzxcdTIyNjRdKSguKikkIik7CS8vIHRoaXMg
RE9FUyB3b3JrIG9uIFNhZmFyaQ0KdmFyIHJlZ2V4ID0gL14oW14jPFx1MjI2NF0rKShbIzxcdTIy
NjRdKSguKikkLzsJCQkJCS8vIHRoaXMgZG9lcyBub3Qgd29yayBvbiBTYWZhcmkNCg0KdmFyIGNo
b2ljZXMgPSBwYXR0ZXJuLnNwbGl0KCJ8Iik7DQpmb3IgKHZhciBpID0gMDsgaSA8IGNob2ljZXMu
bGVuZ3RoOyBpKyspIHsNCglkb2N1bWVudC53cml0ZSgiPGxpPiIgKyBjaG9pY2VzW2ldICsgIiAt
ICIpOw0KCWRvY3VtZW50LndyaXRlKHJlZ2V4LmV4ZWMoY2hvaWNlc1tpXSkpOw0KfQ0KDQo8L3Nj
cmlwdD4NCg0KPC9oZWFkPg0KDQo8Ym9keT4NCg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>