title: how to split the string between two strings in c#?
body: <p>I have one String variable that contains HTML data.Now i want to split that html string into multiple string and then finally merge those strings into single one.</p>
  
  <p><strong>This is html string:</strong></p>
  
  <pre><code>&lt;p&gt;&lt;span style="text-decoration: underline; color: #ff0000;"&gt;&lt;strong&gt;para1&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p style="text-align: center;"&gt;&lt;strong&gt;&lt;span style="color: #008000;"&gt;para2&lt;/span&gt; स्द्स्द्सद्स्द para2 again&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
  &lt;p style="text-align: left;"&gt;&lt;strong&gt;&lt;span style="color: #0000ff;"&gt;para3&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
  </code></pre>
  
  <p><strong>And this is my expected output:</strong></p>
  
  <pre><code>&lt;p&gt;&lt;span style="text-decoration: underline; color: #ff0000;"&gt;&lt;strong&gt;para1&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color: #008000;"&gt;para2&lt;/span&gt;para2 again&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="color: #0000ff;"&gt;para3&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
  </code></pre>
  
  <p>My Split Logic is given below...</p>
  
  <ol>
  <li>Split the HTML string into token based on <code>&lt;/p&gt;</code> tag.</li>
  <li>And take the first token and store it in separate string variable(firstPara).</li>
  <li>Now take the each and every token and then remove any tag starting with<code>&lt;p</code> and also ending with <code>&lt;/p&gt;</code>.And store each value in separate variable.</li>
  </ol>
  
  <p>4.Then take first token named firstPara and replace the tag <code>&lt;/p&gt;</code> and then <strong>append</strong> each every token that we got through the <strong>step 3</strong>.</p>
  
  <p>5.So,Now the variable firstPara has whole value...</p>
  
  <ol>
  <li>Finally, we just append <code>&lt;/p&gt;</code> at the end of the firstPara...</li>
  </ol>
  
  <p>This is my problem...</p>
  
  <p>Could you please step me to get out of this issue...</p>