That's not pretty, but a workaround is easy and IE8 doesn't worth the effort and performance hit of an extra RegExp.