This piece of code is far from perfect, but it works!
It produces a list of substrings (consisting of digits and letters) and their delimiters.
If it is practicaly a sin to manipulate the index of a for loop, then I'm a sinner.
If two delimiters follow each other, an empty string is produced between the two.
If anyone can improve this, please do.
Perhaps solutions with Regex or LINQ are possible.
Or perhaps the great Ketsuekiame can again come up with a one liner? ;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.