I am trying to extract dates from email texts using datefinder python library. Below is a the code snippet of what I am trying to do. datefinder tries to construct all the numbers in the email to dates. I get lot of false positives. I can remove those using some logic. But i get IllegalMonthError in some email and i