title: RegEx for extracting placeholder matches
body: <p>I have this string </p>
  
  <pre class="lang-py prettyprint-override"><code>template = "Hello my name is &lt;name&gt;, I'm &lt;age&gt;."
  </code></pre>
  
  <p>And I want to test if my strings match that template and anything can be in place of the placeholders. The placeholders start and end with brackets like this <code>&lt;place holder here&gt;</code>. E.g this string would match</p>
  
  <pre class="lang-py prettyprint-override"><code>string = "Hello my name is John Doe, I'm 30 years old."
  </code></pre>
  
  <p>I also want to extract parts of the string that substitute the placeholders. For the example above, I want to get the list:</p>
  
  <pre class="lang-py prettyprint-override"><code>['John Doe', '30 years old']
  </code></pre>
  
  <p>I'm able to extract the placeholders of the template using the pattern <code>&lt;(.*?)&gt;</code> for regex, but I'm currently stuck on how to extract the actual substitutions from the string. I need a generic approach and I don't want to hardcode the pattern to match the full template because I have many templates to check. Is there a clever way to do this?</p>