I have a string that’s '30.04/2012', and I want to split it so the output is ['30', '04', '2012']. That’s essentially x.split('.') and x.split('/'). How can I do this efficiently?
I have a string that’s ‘30.04/2012’ , and I want to split it so
Share
Use a regex with alternatives.