title: How to remove duplicate char on string (more than 3 occurences) using Regex on VB.Net?
body: <p>I'm sorry if it's a duplicate of some question but this is specific on Vb.Net Regex function.</p>
  
  <p>I need to remove any occurrence of 3 or more duplicate characters on a given string. For example:</p>
  
  <pre><code>Dim strTmp As String = "111111.......222222 and 33"
  Dim output As String = Regex.Replace(strTmp, "????", "")
  
  Debug.Print(output)
  </code></pre>
  
  <p>The <em>"????"</em> part I guess should be the Regex expression, which I must assume I know almost nothing about.</p>
  
  <p>I don't know if that's the correct syntax. But I need the output to come as:</p>
  
  <p><strong>"1.2 and 33"</strong></p>
  
  <p>So any directions is appreciated.</p>