I want to format a string so it can easily be emailed. I'm quite stuck with the following:
I get a long string seperated by ":" (no quotes in the string). I now need to insert "\n" after every !second! ":" .
After (or before?) that I need to erase every empty pair ("1234:" in the example below) from the string..
I've been trying for some hours now but I haven't found any really good solution yet.
i.e.:
1234::4321:12:123:2 is my string
that's what it should look like:
4321:12
123:2
so if anyone could pls. help me out here..