title: Python Regex: words between two delimiters - replace leading delimiters with punctuation, but removing ending ones
body: <pre><code>test_str = '**Amount** : $25k  **Name** : James'
  </code></pre>
  
  <p>expected output:</p>
  
  <pre><code>output: Amount: $25k, Name: James
  </code></pre>
  
  <p>I can only use re.sub function to remove/replace delimiters **words** but cannot get the expected result. </p>
  
  <p>Also, is it possible to generalize the code to implement on all delimiters (**xx**, &lt; xx>, etc)?</p>