I need help with replacing characters in a string using regular expressions.
Input :
s3 = ['March/21/2019' , 'Mar/23/2019']
Desired Output :
s3 = ['03/21/2019' , '03/23/2019']
I've tried a few things, but none of them seem to make any impact on the input:
s3[i] = s3[i].replace(r'Mar[a-z]*', '03')
s3[i] = s3[i].replace(r'(?:Mar[a-z]*)', '03')
Could someone please help me and tell me what I'm doing wrong.