date_reg = re.compile("\d{4}[-/]\d{1,2}[-/]\d{1,2}|\d{1,2}[-/]\d{1,2}") time_reg = re.compile("\d{1,2}[:]\d{1,2}[:]\d{1,2}|\d{1,2}[:]\d{1,2}") 複製代碼