title: remove square brackets from string using tcl
body: <p>I'm new to using Tcl and am trying to remove the square brackets from a string using Tcl.</p>
  
  <pre><code>set f "abc [def]"
  set bracket1 {[}
  set bracket2 {]}
      regsub -all "($bracket1) ($bracket2)" $f "" g
      puts $g
  </code></pre>