What would be the correct regex expression for splitting something like '32s' into (32, 's') in Python while also allowing to split something like '31.7435x' into (31.7435, 'x')?
I was using re.findall('(\d+|[A-Za-z]+)', '32s'), but this doesn't allow for floats, whereas '(\d+\.\d+|[A-Za-z]+)' doesn't allow for ints. Trying '(\d+|[A-Za-z]+)|(\d+\.\d+|[A-Za-z]+)' also doesn't work.