Am I blind or what...
Why is /MSIE (5\.5)|/.test(navigator.userAgent) true
when navigator.userAgent == "Opera/7.0 (Windows 2000; U) [en]" ?
(Can understand that it's true if Opera identifies itself as MSIE 6.0 for example, but not this)
Anyone got a bright idea?
I added " && !/opera/i.test(navigator.userAgent)" because I have to check Opera browsers identifying themselves as MSIE or Mozilla/5 anyway, but the fact that /MSIE (5\.5)|/ is true is still confusing...
That's very weird, and I have no idea why it's returning true jofa! Your regex seems perfectly valid. Is there any logic before that regex that could be causing the problem?
Ah, I changed it to /MSIE\s(5\.5|)/, and now it's working