fixes #2217 - initialize Regexp constants here to stop duplicate warnings