title: Regex: extract before, after character
body: <p>given the following string</p>
  <pre><code>stringData= &quot;goal01=4 goal02=2 goal06=3 goal09=1 goal12=5 goal13=2 goal14=4 planet=52 people=48 Inclusion=4 HealthWellness=2 SustainableInfrastructure=4 ResponsibleConsumption=9 Environment=2&quot; 
  </code></pre>
  <p>I need a regex to parse the following two variants</p>
  <pre><code>stringColumns = stringData(regex that //fetch before '=' and add ',' to string i.e goal01,goal02,planet etc..) 
  stringValues= stringData(regex that //fetch after '=' and same as above 4,2,3,52, etc..) 
  </code></pre>
  <p>as I need them split in order to construct a sql insert statement such as</p>
  <pre><code>sqlSyntax = &quot;INSERT INTO [table] (&quot;'+stringColumns+'&quot;) VALUES (&quot;'+stringValues+'&quot;)&quot;
  </code></pre>
  <p>I tried  <code>^([^=])+</code> and it only matched the first <code>goal01</code> what do I need to fetch all the remainings?</p>
  <p><a href="https://regex101.com/r/QZgfPh/1" rel="nofollow noreferrer">https://regex101.com/r/QZgfPh/1</a></p>