I'm having this simple code:
print( re.split(' |,', '156 for 23,5 or 15') )
# ['156', 'for', '23', '5', 'or', '15']
The question is how to return digits as integers and text as strings (it is already)... So getting this instead:
# [156, 'for', 23, 5, 'or', 15]