`/g` does work in IE. (And if it didn't, the `new RegExp(.., 'g')` also wouldn't work.)