Creation of the timeRe regex for the shutdown function + corrections