datefinder icon indicating copy to clipboard operation
datefinder copied to clipboard

can't extract the date from following string

Open TalibCode opened this issue 3 years ago • 1 comments

s="Publication date:08/06/2021 19:43"
print(helper.is_ascii(s))
matches = list(datefinder.find_dates(s))
print(matches)

#it returns empty list

TalibCode avatar Jun 09 '21 05:06 TalibCode

It seems that datefinder can not extract the date if there is a digit following it:

>>> list(datefinder.find_dates("11/20/1972"))
[datetime.datetime(1972, 11, 20, 0, 0)]
>>> list(datefinder.find_dates("11/20/1972 4"))
[]

datefinder version 0.7.3

lynxoid avatar Nov 16 '22 22:11 lynxoid