How to search for a repeated unit in a long string using C#
<p>How to search for a repeated unit in a long string?</p>

<pre><code>string foo = "atccuahhqtccuahh";
</code></pre>

<p>With a repeated substring of <code>ccuahh</code>, how can I determine the position where the repeat happen using regex?</p>

<hr>

<p>Thank you guys. But the code posted is not working. I am search for any type of repeat in a string. Anyone can post a tested code to help me out? Thanks a lot. </p>
