title: How do I match all text after a regex capture group but only up to the next repeated match?
body: <p>I have some irregular text that I need to form into a python dictionary:</p>
  <p><code>S5=test 3,300 Plus,S6=test 2 7,999-1,900,S7=test 3,899-1,500,S8=test 4,599-1,300,S9=Test 5-1,399,</code></p>
  <p>I'm looking to grab everything before the <code>=</code> sign as the <strong>key</strong> and everything <em>after</em> the <code>=</code> sign but <em>before</em> the next <strong>key</strong> as the <strong>value</strong>.</p>
  <p>This is what I have so far in python but it doesn't seem to be working for cases with multiple <code>,</code> commas:</p>
  <p><code>(\w*)=+((?&lt;==).+?(?=,))+</code></p>
  <p><a href="https://regex101.com/r/Tokjsw/2" rel="nofollow noreferrer">https://regex101.com/r/Tokjsw/2</a></p>
  <p>Any ideas or simpler regex expressions would help.</p>