i would like to take any input string and delimit it into groups. each group may be at least one character and no more than 4 characters. How do I loop to create all possible combinations?
Example:
in-string: xoox
output: x|o|o|x, x|oo|x, x|oox, xo|o|x, xo|ox, xoo|x, xoox
I'm writing an asp .net app using VB, but I really just need the concept for the recursion. So, an example in any language that doesn't use a special method to accomplish this would help me.