title: Dynamic String Format C#
body: <p>In C#, Windows Form, how would I accomplish this:</p>
  
  <hr>
  
  <pre><code>07:55 Header Text:  This is the data&lt;br/&gt;07:55 Header Text:  This is the data&lt;br/&gt;07:55 Header Text:  This is the data&lt;br/&gt;
  </code></pre>
  
  <hr>
  
  <p>So, as you can see, i have a return string, that can be rather long, but i want to be able to format the data to be something like this:</p>
  
  <hr>
  
  <pre><code>&lt;b&gt;&lt;font color="Red"&gt;07:55 Header Text&lt;/font&gt;&lt;/b&gt;:  This is the data&lt;br/&gt;&lt;b&gt;&lt;font color="Red"&gt;07:55 Header Text&lt;/font&gt;&lt;/b&gt;:  This is the data&lt;br/&gt;&lt;b&gt;&lt;font color="Red"&gt;07:55 Header Text&lt;/font&gt;&lt;/b&gt;:  This is the data&lt;br/&gt;
  </code></pre>
  
  <hr>
  
  <p>As you can see, i essentially want to prepend <code>&lt;b&gt;&lt;font color="Red"&gt;</code> to the front of the header text &amp; time, and append <code>&lt;/font&gt;&lt;/b&gt;</code> right before the : section.</p>
  
  <p>So yeah lol i'm kinda lost.</p>
  
  <p>I have messed around with <strong>.Replace()</strong> and <strong>Regex</strong> patterns, but not with much success.  I dont really want to REPLACE text, just append/pre-pend at certain positions.</p>
  
  <p>Is there an easy way to do this?</p>
  
  <p>Note: the [] tags are actually &lt;> tags, but i can't use them here lol</p>