You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

bug in Safari javascript RegExp?

This code splits the string into 2 pieces in Firefox and IE,
but just 1 piece in Safari. It seems like a bug in RegExp.
The "i" flag is supposed to mean the expression is
case-insensitive.

var r = new RegExp("x", "i");
var s = "helloXbye";
var parts = s.split(r);
alert("split into " + parts.length + " parts");


Windoze Windows XP

Posted on Dec 16, 2005 7:10 AM

Reply
4 replies

bug in Safari javascript RegExp?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.