title: Is it possible to assess the contents of a capture group again?
body: <p>More out of curiosity than anything else (given the time I've spent on this), I'm trying to see if I can use the replace function in Sublime Text 3 with regex to convert</p>
  
  <p><code>style="bla: bla; bla:bla;"</code></p>
  
  <p>into </p>
  
  <pre><code>bla:bla;
  bla:bla;
  </code></pre>
  
  <p>I'm able to create a capture for just <code>bla: bla; bla:bla;</code>, without <code>style</code> or the quotation marks:</p>
  
  <p><code>(?&lt;=\sstyle=")(.*)(?=")</code> <a href="https://regex101.com/r/tctJti/1" rel="nofollow noreferrer">https://regex101.com/r/tctJti/1</a></p>
  
  <p>After that though, I'm stuck. I've also tried capturing every <code>bla:bla</code> seperately, but that doesn't even seem to help, since the capture group then only holds the last thing it captured:</p>
  
  <p><code>\s*style="((.*?;)*)"</code> <a href="https://regex101.com/r/tctJti/2" rel="nofollow noreferrer">https://regex101.com/r/tctJti/2</a></p>
  
  <p>What I would need is to be able to tell sublime to ignore everything outside that capture group from my first example, and then inside that single capture group look for semicolons, and transform those into newlines. Is something like that even possible, or is that by definition a two-step conversion?</p>