Can't find specific dates in %d.%m.%Y format
skjerns opened this issue · 2 comments
skjerns commented
list(datefinder.find_dates('07.11.2022_-_11.11.2022.pdf', first='day'))
does not work, I don't understand why? Similar formats parse without problem
akoumjian commented
The separators there are causing a lot of problems. Because -_
can be used to separate date components themselves, the parser grabs the string greedily which in this case likely includes all of 07.11.2022_-_11.11.2022
. Not sure what the immediate next steps would be, solving this likely includes breaking other valid examples.
skjerns commented
Okay thanks! I guess a workaround in my case would be to remove all underscores before calling the function