I have a string with commas and numbers which can be any number and in any combination. For example:
1, 2, 4, 23, 58
1, 2, , , , , 23, 58
1, , , ,2, 4, 23 , , , , 58 , ,
, , 1, 2, 4, , 23, 58, ,
, 1, 2, 4, , 23, , , 58, ,
Regardless of where the commas are, I want to be able to return a string: 1, 2, 4, 23, 58 (ie. all numbers in the string separated by commas).
Please help ... I am totally stumped. Any suggestions or information would be appreciated. Thank you in advance.
1, 2, 4, 23, 58
1, 2, , , , , 23, 58
1, , , ,2, 4, 23 , , , , 58 , ,
, , 1, 2, 4, , 23, 58, ,
, 1, 2, 4, , 23, , , 58, ,
Regardless of where the commas are, I want to be able to return a string: 1, 2, 4, 23, 58 (ie. all numbers in the string separated by commas).
Please help ... I am totally stumped. Any suggestions or information would be appreciated. Thank you in advance.