|
but what is the best way of doing the same thing for a string where the delimiter is ;;, e.g. s = "a;;b;;c" (where a, b and c can be any length and can include non repeating occurrences of ; )
The encoding format seems ambiguous. E.g., Input 1 | Input 2 | Encoded ---------+-----------+-------- a; | b | a;;;b a | ;b | a;;;bThere is no way to parse a;;;b and be guaranteed to recover the original inputs.
Scott