why not just use /(\s+)/ in firefox too then? It gives me the correct number
of 5.

On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:

javascript:alert("hello there Opera".split(/\b/).length)

Firefox says 5 , safari says 6, Opera says 15!

it really got me confused while writing some jQuery code!

now I use $.browser.opera ? /(\s+)/ :  /\b/ ; instead.

Ouch, I didn't realize there was that much of a difference!


Reply via email to