title: How to select a self-closing bracket
body: <p>I have a bunch of self closing <code>&lt;use /&gt;</code> tags that I want to replace with <code>&lt;use&gt;&lt;/use&gt;</code> to appease ie11.</p>
  <p>E.g. <code>&lt;use xlink:href=&quot;#fas-times-circle&quot;/&gt;</code> I want to become <code>&lt;use xlink:href=&quot;#fas-times-circle&quot;&gt;&lt;/use&gt;</code></p>
  <p>I therefore just want to select the ending <code>/&gt;</code> that matches a tag starting wiht <code>&lt;use</code>.</p>
  <p>I've got this far with my regex:</p>
  <pre><code>(?=&gt;&lt;use)*(\/&gt;) 
  </code></pre>
  <p>However for some reason this is picking up the odd stray tag in my HTML, like <code>&lt;path /&gt;</code>. I can only assume I am not being specific enough in my query.</p>
  <p>Where am I going wrong? For reference I am using Pycharm so I guess the regex flavour is Python.</p>
  <p>*** Edit ****</p>
  <p>Example use case:</p>
  <pre><code>&lt;use xlink:href=&quot;#fas-times-circle&quot;/&gt;
  &lt;path blah /&gt;
  &lt;br /&gt;
  &lt;use something xlink:href=&quot;#fas-times-square&quot;/&gt;
  </code></pre>
  <p>Becomes:</p>
  <pre><code>&lt;use xlink:href=&quot;#fas-times-circle&quot;&gt;&lt;/use&gt;
  &lt;path blah /&gt;
  &lt;br /&gt;
  &lt;use something xlink:href=&quot;#fas-times-square&quot;&gt;&lt;/use&gt;
  </code></pre>