updating regular expression slot