title: How to strip any characters inside [ ] inclusive [ ] in a string using Regex in C#
body: <p>My string inputs from my input files columns are <code>qo_lc[m3/h]</code>, <code>TAMB[DegC]</code>, <code>mo_lc[Kg/s]</code> etc </p>
  
  <p>Required output for respective strings are <code>qo_lc</code>, <code>TAMB</code>, <code>mo_lc</code>.</p>
  
  <p>My C# code</p>
  
  <pre><code>for (int columnIndex = 0; columnIndex &lt; columnList.Count; columnIndex++)                                    
  // Tab delimited input file columns
  {
    string c_string = columnList[columnIndex]; //string input qo_lc[m3/h]
    string tmp = Regex.Replace(c_string, "[.*]", ""); //required output qo_lc
  //How to proceed with Regex.Replace Syntax
    columnList[columnIndex] = tmp;
  
  }
  </code></pre>