title: How to replace the text between 2 characters?
body: <p>I want to remove the content between 2 characters in a text with Visual C#. <br>
  Here is an example:</p>
  
  <blockquote>
    <p>Given: Hi [everybody], I'm 22 years old, I'm a student [at a University of Technology] in Vietnam <br>
    Result: Hi, I'm 22 years old, I'm a student in Vietnam</p>
  </blockquote>
  
  <p>I use this syntax</p>
  
  <pre><code>string input = "Hi [everybody], I'm 22 years old, I'm a student [at a University of Technology]";
  string regex = "(\\[.*\\])";
  string output = Regex.Replace(input, regex, "");
  </code></pre>
  
  <p>but the code is remove all between the first and the last square brackets, so this is the result: </p>
  
  <blockquote>
    <p>Hi in Vietnam</p>
  </blockquote>
  
  <p>How can I fix it ?</p>