title: How can I write regex for the following statements?
body: <p>I have some strings, and I would like to use regex to extract any html tags, and also the text from a set of curly braces.</p>
  
  <p>For example, I can have the following 2 strings:</p>
  
  <pre><code>Is this a { &lt;strong&gt;  Versioned placeholder &lt;/strong&gt; } file?
  Is this a  &lt;strong&gt; { Versioned placeholder } &lt;/strong&gt; file?
  </code></pre>
  
  <p>And so far, I have the following regex: </p>
  
  <pre><code>(?:\{)(?&lt;PlaceholderValue&gt;\s*[\w\s]*\s*)(?:\})
  </code></pre>
  
  <p>What I would like is for the text within the curly braces (i.e. "<em>Versioned placeholder</em>") to be placed in the <em>PlaceholderValue</em> group, and all other html tags WITHIN the curly braces to also be captured. How can I do this?</p>
  
  <p>Note, the html tags within the curly braces are optional, and will not always be present. I am not interested if the html tags are outside the curly braces.</p>