How to replace the space that follows a digit into comma using python and re?
For example,
0, 1, 0 12 13 -> 0, 1, 0, 12, 13;
import re
text = "0, 1, 0 12 13"
matches = re.sub(r'(\d+)\s','*,', text)
print(matches)
but that gives me 0, 1, *, *, *,