SyntaxFix
Write A Post
Hire A Developer
Questions
This has been answered to death, but this is all you need.
!!navigator.userAgent.match(/msie\s[5-8]/i)