I have a list:
rand_strings = [
"Hi 06/02/2020 my name is Arjun",
"Oh 2992 that's nice",
"Some other string 2019-05-12",
]
I want to remove only the dates of these two formats from them. Not all recognized dates. This is my desired output:
rand_strings = [
"Hi my name is Arjun",
"Oh 2992 that's nice",
"Some other string " #whitespace doesn't matter
]
The list is thousands of elements long and several of them have these dates to be removed.