fix log regular expression