akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
635 stars 165 forks source link

Extract a date from a string with additional numbers #71

Open leferrad opened 6 years ago

leferrad commented 6 years ago

I have a problem with these examples:

"09/05/2009 14:40 06", "03/29/2009 11:03 am 1", "32402 05/19/13 05:37", ...

In general, when a text line comes with a complete date inside and some extra number (let's assume it's a number, because I've already filtered those non significant characters), the module can't find a date on that line.

I guess this is a little bit difficult to parse, so I just wanted to know if there are some ideas to solve this, without going against the main pipeline of this engine. I'm able to post a PR to fix (or cover) this if it's a desirable behavior on the DataFinder engine.

Thanks!