I have a regex pattern like this :
(?:(?:(?:1[0-2]|0?[1-9])) *[ /.-] *(?:3[01]|[12][0-9]|0?[1-9]) *[ /.-] *(?:19\d{2}|20\d{2}|1[6-9]|2[0-9]))
I want to match it with this text :
001-001 09/23/2019 heure :42
What I am getting matched is:
01 09/23
What I want to have as match :
01 09/23 AND 09/23/2019
My code is actually :
regex = re.compile(pattern)
matches = regex.findall(text)
Is there any option I should turn on ? Thanks