title: How can I replace e.g. *<anytext>* by \emph{anytext} using a regex?
body: <p>How can I replace e.g.</p>
  
  <pre><code>*&lt;anytext&gt;*
  </code></pre>
  
  <p>by</p>
  
  <pre><code>\emph{anytext}
  </code></pre>
  
  <p>using a regex?</p>
  
  <p>I've read at least 6 different general explanations, 4 of them on stackoverflow, of capture groups, but keep on doing something wrong.</p>
  
  <p>I came up with</p>
  
  <pre><code>Find what:      \*(?:.*?)\*
  Replace with:   \emph{\1}
  </code></pre>
  
  <p>but it replaces</p>
  
  <pre><code>*blablah*
  </code></pre>
  
  <p>by</p>
  
  <pre><code>\emph{}
  </code></pre>
  
  <p>What am I missing?</p>