Best way to identify and extract dates from text Python?

前端 未结 7 867
孤城傲影
孤城傲影 2020-12-13 06:10

As part of a larger personal project I\'m working on, I\'m attempting to separate out inline dates from a variety of text sources.

For example, I have a large list o

7条回答
  •  佛祖请我去吃肉
    2020-12-13 06:58

    Newer versions of parsedatetime lib provide search functionality.

    Example

    from dateparser.search import search_dates
    
    dates = search_dates('Central design committee session Tuesday 10/22 6:30 pm')
    

提交回复
热议问题