Hi,

I have written code to find subsstrings in a string.

Example:

string = "abc"
sbstrings = a, b, c, ab, bc, ca, abc
string = "xy"
substrings = x, y, xy

in genral no. of substrings = 2^strlen - 1

Only problem is that the code is to lengthy and can work only if length of string is known.

Is there a way to solve this proble using RegEx? (without knowing how many chra exists in string)

Regards
RB