Hi all
I would like to convert a string which would contain a mix of numbers and ranges (of numbers) into a complete list of integers.
The format would for example be:
1,3-4,6
and I want to convert this to a text string which would be:
1,3,4,6
A second example would be:
4,8-14,15,17-20
which i'd want to convert to:
4,8,9,10,11,12,13,14,15,17,18,19,20
Any pointers much appreciated.
Thanks
I would like to convert a string which would contain a mix of numbers and ranges (of numbers) into a complete list of integers.
The format would for example be:
1,3-4,6
and I want to convert this to a text string which would be:
1,3,4,6
A second example would be:
4,8-14,15,17-20
which i'd want to convert to:
4,8,9,10,11,12,13,14,15,17,18,19,20
Any pointers much appreciated.
Thanks