akoumjian / datefinder

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

Use lookarounds to guard against spurious match on months or days #188

Open maharris77 opened 1 year ago

maharris77 commented 1 year ago

Use positive lookahead and positive lookbehind in DATES_PATTERN for a cleaner way to guard against spurious matches of month or day text. Avoids matching "market", "separate", "amar", but allows digits ("12jan2023").