title: How do I build a regex to match these `long` values?
body: <p>How do I build a regular expression for a long data type in Java, I currently have a regex expression for 3 double values as my pattern: </p>
  
  <pre><code>String pattern = "(max=[0-9]+\\.?[0-9]*) *(total=[0-9]+\\.?[0-9]*) *(free=[0-9]+\\.?[0-9]*)";
  </code></pre>
  
  <p>I am constructing the pattern using the line:</p>
  
  <pre><code>Pattern a = Pattern.compile("control.avgo:", Pattern.CASE_INSENSITIVE);
  </code></pre>
  
  <p>I want to match the numbers following the equals signs in the example text below, from the file <code>control.avgo</code>.</p>
  
  <pre class="lang-none prettyprint-override"><code>max=259522560, total=39325696, free=17979640
  </code></pre>
  
  <p>What do I need to do to correct my code to match them?</p>