title: GWT regexp only matches the last occurence
body: <p>I try to parse the string <code>/param1=value1/param2=value2</code>, to extract the param/value pairs with this code :</p>
  
  <pre><code>  public static void main(String[] foo) {
  
      RegExp regExp = RegExp.compile("(/(\\w+)=(\\w+))*", "g");
  
      MatchResult matchResult = regExp.exec("/param1=value1/param2=value2");
  
      for (int i = 0; i &lt; matchResult.getGroupCount(); i++) {
        System.out.println("group" + i + "=" + matchResult.getGroup(i));
      }
  
    }
  </code></pre>
  
  <p>which outputs :</p>
  
  <pre><code>group0=/param1=value1/param2=value2
  group1=/param2=value2
  group2=param2
  group3=value2
  </code></pre>
  
  <p>I tried with and without the "<code>g</code>" (global) flag.</p>
  
  <p>Why does it capture only <code>param2=value2</code> and not also <code>param1=value1</code>?</p>