title: How to replace -a- with <a> where a can be anything
body: <p>In JS, I want to replace <code>-a-</code>, with <code>&lt;a&gt;</code> and <code>-b-</code> with <code>&lt;b&gt;</code> and <code>-c-</code> with <code>&lt;c&gt;</code> and so on... So the regex would be something like this:</p>
  
  <pre><code>-(variable)-
  </code></pre>
  
  <p>should be replaced with:</p>
  
  <pre><code>&lt;(variable)&gt;
  </code></pre>
  
  <p>How to achieve this in JS? </p>