I have a string like so:
string = "27.116.56.0 27.116.59.255 43.230.209.0 43.230.209.255" #(white space sep)
how would you go from it to this format:
string = "27.116.56.0-27.116.59.255,43.230.209.0-43.230.209.255"
**the string will have unknown length , the elements number will allways be even.
I've looked at some close examples and got confused.. what is the best easy way doing that?