This is the string I am dealing with:'5Nov20217Dec202110Jan2022'
The string could also be:
'5Nov2021 7Dec2021 10Jan2022' I would like to obtain a list like:
['5Nov2021','7Dec2021','10Jan2022'] I am currently using regex but to no avail:
re.findall('^\d{1,2}[a-zA-Z]{3}\d{4}$','5Nov20217Dec202110Jan2022') A regex solution is not a must.
^and$