How to splite with number with , in filed with missing number in given number?

i am trying to getting this output… but faild to missing numbers in separate by this ‘,’ one ?

Input: 1, 2, 3, 4.. 9, 10,13.. 17, 18, 19.. 25 
Output: 1 2 3 4 5 6 7 8 9 10 13 14 15 16 17 18 19 20 21 22 23 24 25