I don't think `/g` works in IE. Could you define this as `new RegExp('-?\d+', 'g')`?