Files contain date formats 4 types:
31.12.2017 23:59:59 31-12-2017 23:59:59 2017.12.31 23:59:59 2017-12-31 23:59:59 How to filter the necessary using regex?
I tried to use
[\d-\.]+ [\d:]+ Since, by analogy, I had a regex for the format of 2017-12-31 24:59:59
[\d-]+ [\d:]+ But python gives the error:
raise error, v # invalid expression sre_constants.error: bad character range How to fix regex?