I have strings like 6M1D14M. I would like to extract all the numbers from this string. Something like:
[6, 1, 14]
How do I do that? The length of the string can be arbitrary. Numbers that are present in between might also be of any length.
I have tried this approach but unable to split the string the way I need.