PythonのPythonの正規表現の日付ギ
text = '4/13'
については
reg = "((1[0-2])|(0?[1-9]))/((1[0-9])|(2[0-9])|(3[0-1])|(0?[0-9]))"
match = re.findall(reg, text, re.IGNORECASE)
print match
の日付形式MM/DDを認識するためのREの書き込みしようとすると、それは私に
[('4', '4', '', '13', '13', '', '', '')]
なく
'4/13'
を与えます
ありがとう、 Cheng
[datetimeに文字列を変換する]の可能な複製(http://stackoverflow.com/questions/466345/converting-string-into-datetime) –