 <p>use <a href="http://msdn.microsoft.com/en-us/library/tabh47cf.aspx" rel="nofollow">String.Split()</a></p> <pre><code>string str = "foobar~~some example text~~this is a string"; string[] _result = str.Split("~~", StringSplitOptions.None); </code></pre>