I have a DataFrame which contains a lot of intraday data, the DataFrame has several days of data, dates are not continuous.
2012-10-08 07:12:22 0.0
Using regex:
(\d{4}-\d{2}-\d{2})
Run it with re.findall function to get all matches:
re.findall
result = re.findall(r"(\d{4}-\d{2}-\d{2})", subject)