title: What's the regex for key=value, delimited by commas?
body: <p>What's the Java regular expression that captures the entire key-value list (shown in bold in the example below)?</p>
  
  <blockquote>
    <p>foo bar <strong>k0=v0, k1=v1, k2=v2</strong> foo bar</p>
  </blockquote>
  
  <p>The keys and values do not contain whitespace characters, <code>,</code> or <code>=</code>.</p>
  
  <p>I've tried: <code>(([^\s,=]+=[^\s,=]+),?)+</code> at <a href="http://www.regexplanet.com/advanced/java/index.html" rel="nofollow">Regular Expression Test Page for Java</a>, but it gives me groups of the individual equalities (<code>k0=v0</code>, etc) instead of the entire string. Why is that? and how do I fix it?</p>