title: Regular Expression to remove specific patterns
body: <pre><code>String str=",Name=Tom,Age=23,something=something,roll=1,somethng=55,"
  </code></pre>
  
  <p>I want to remove all those key value pairs from the string whose value is a number.</p>
  
  <p>Now i am doing something like this</p>
  
  <pre><code>    Pattern p = Pattern.compile(",[^=]*?=([^,]*),");
      Matcher m = p.matcher(str);
      String result = "";
      while (m.find()) {
          if (!isNumeric(m.group(1))) {
              result += m.group(0);
          }
  
      }
      System.out.println(result);
  </code></pre>
  
  <p>The expected output is</p>
  
  <pre><code>",Name=Tom,something=something,"
  </code></pre>
  
  <p>But now i am getting</p>
  
  <pre><code>",Name=Tom,,something=something,"
  </code></pre>
  
  <p>Please help.</p>