Workaround for incorrectly reused regexp (see http://stackoverflow.com/questions/2141974/javascript-regex-literal-with-g-used-multiple-times)