Regex Extract Date from String

PHOTO EMBED

Sat Oct 29 2022 12:36:45 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 ##regex

pattern = r"\d{4}/\d{2}/\d{2}"
text_to_search = "The date of creation is 2019/03/12 and date of expiration is 2021/03/01"
re.findall(pattern, text_to_search)
content_copyCOPY

http://localhost:8889/notebooks/receipts.ipynb