Finding Dates
Lesson 27 of 28 in Coddy's RegEx in Python course.
Challenge
MediumWrite a function named find_dates_various_formats that takes a text string as input and returns a list of dates in the formats "MM/DD/YYYY", "DD-MM-YYYY", or "YYYY.MM.DD".
Try it yourself
import re
def find_dates_various_formats(text):
# Write code hereAll lessons in RegEx in Python
1Introduction
Introduction7Final Challenges
Extracting HashtagsFinding Email AddressesValid Phone NumbersFinding DatesCapitalized Words