I have 3 possible string date.
I have to parse the date string with Regex
date = "13.06.2020"
date2 = "13-06-2020"
date3 = "13/06/2020"
for i in [date,date2,date3]:
finder = re.findall(r'something',i) #I try findall but I think it doesn't work.
print("day : " + finder[0])
print("month : " + finder[1])
print("year : " + finder[2])
It supposed to give that output for all possibilities. I figure out with Datetime but I can't use it. I have use re library
day:13
month:06
year:2020
Do you guys have any suggestions?