title: Replace [ and ] in a string with regex
body: <p>How to delete <code>[</code> and <code>]</code> characters in a string with Regex ?</p>
  
  <p>I'm using the Puppet DSL function regsubst : </p>
  
  <pre><code>regsubst($::env, '\[\]', '', 'G')
  </code></pre>
  
  <p>thanks</p>