Does the RegExp factory cache reg exp objects? If not, it might be worth it to make this a constant outside of this method.