Search repeat (any type of repeat) substring in a long string without space
<p>I have asked the same question before, but did not get what I want. So have to post it again. </p>

<p>I have a very long string which does not have any space within it. Now I am trying to search for repeated substring (any type, no specific pattern) in this long string. The length of the repeat could be a range between (min, max), i.e (min = 3. max = 5). </p>

<p>For example:
String s = "atggucttuaccccggucttaacccc";
in which "gguctt" and  "acccc" are the two different repeated substrings (I do not know this before I run the code).</p>

<p>So I am wandering, in C#, is there any fast way to determine the repeats and the position where the repeats occur?</p>

<p>Thanks in advance.</p>
