title: Filter out the price or cost in the Java
body: <p>I have got <code>((?:[0-9]{1,3}[\.,]?)*[\.,]?[0-9]+)</code> to filter out the prices in a string on java so I put them like this:</p>
  
  <pre><code>public static final String new_price = "((?:[0-9]{1,3}[\\.,]?)*[\\.,]?[0-9]+)";
  
  final Pattern p = Pattern.compile(new_price, 0);
      final Matcher m = p.matcher(label);
      if (m.matches()) {
          Log.d(TAG, "found! good start");
          if (m.groupCount() == 1) {
              Log.d(TAG, "start match price" + " : " + m.group(0));
          }
          if (m.groupCount() == 2) {
              Log.d(TAG, "start match price" + " : " + m.group(1));
          }
      }
  </code></pre>
  
  <p>I got the sample working on <a href="http://www.regexr.com/" rel="nofollow">http://www.regexr.com/</a> but it never found the matches on the run time.  Any idea??</p>