|
-
September 16th, 2011, 06:58 AM
#1
Find Substrings
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
-
September 16th, 2011, 10:05 AM
#2
Re: Find Substrings
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|