title: Would like to count the characters in a string excluding rich text formatting? (C#)
body: <p><strong>Platform</strong>: Unity 2018.2.20f1
  <strong>Language</strong>: C# .Net 4.x </p>
  
  <h2>Scenario</h2>
  
  <p>I have a string which I would apply to a textmesh rendered​ in Unity. This rendering pipeline supports Rich text editing. 
  <a href="http://digitalnativestudios.com/textmeshpro/docs/rich-text/" rel="nofollow noreferrer">http://digitalnativestudios.com/textmeshpro/docs/rich-text/</a></p>
  
  <h2>Request</h2>
  
  <p>Hence when I supply in a string, I would like to know character count which would exclude the characters used for Rich Text formatting. </p>
  
  <h2>Example</h2>
  
  <pre><code>string _value = "We are &lt;b&gt;&lt;i&gt;definitely not&lt;/i&gt;&lt;/b&gt; amused";
  // Character count should be 29 instead of 43
  </code></pre>
  
  <p>So what is the best way to implement it? Is there a module/resources online that would assist me in extracting the count?</p>
  
  <p>Thank you, 
  Karsnen</p>