CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Find Substrings

  1. #1
    Join Date
    Aug 2008
    Posts
    78

    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

  2. #2
    Join Date
    Aug 2008
    Posts
    78

    Resolved Re: Find Substrings

    Is solved !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured