Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find specific dates in %d.%m.%Y format #179

Open
skjerns opened this issue Nov 7, 2022 · 2 comments
Open

Can't find specific dates in %d.%m.%Y format #179

skjerns opened this issue Nov 7, 2022 · 2 comments

Comments

@skjerns
Copy link

skjerns commented Nov 7, 2022

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
Copy link
Owner

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
Copy link
Author

skjerns commented Dec 14, 2022

Okay thanks! I guess a workaround in my case would be to remove all underscores before calling the function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants