On Fri, Jan 23, 2009 at 7:33 AM, Mike Shaver <[email protected]> wrote:

> Firefox and Opera are doing what ES3 requires (s 7.8.5:
> http://bclary.com/2004/11/07/#a-7.8.5 ),


Correct.


> but I believe that it's being
> changed in 3.1 to produce a new one each time the literal expression
> is executed.
>

Correct. In the meantime, you can change expressions like

    var regexp = /^[^d]*\bd{1,4}\b[^d]*$/g;

into

    var regexp = new RegExp("^[^d]*\\bd{1,4}\\b[^d]*$","g");

Yes, this is ugly. But an ugly program that works is better than a pretty
one that doesn't.


-- 
   Cheers,
   --MarkM
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to