title: Java: how to parse double from regex
body: <p>I have a string that looks like "A=1.23;B=2.345;C=3.567"</p>
  
  <p>I am only interested in "C=3.567"</p>
  
  <p>what i have so far is:</p>
  
  <pre><code>     Matcher m = Pattern.compile("C=\\d+.\\d+").matcher("A=1.23;B=2.345;C=3.567");
  
      while(m.find()){ 
          double d = Double.parseDouble(m.group());
          System.out.println(d);
      }
  </code></pre>
  
  <p>the problem is it shows the 3 as seperate from the 567</p>
  
  <p>output:</p>
  
  <p>3.0</p>
  
  <p>567.0</p>
  
  <p>i am wondering how i can include the decimal so it outputs "3.567"</p>
  
  <p>EDIT: i would also like to match C if it does not have a decimal point:
  so i would like to capture 3567 as well as 3.567</p>
  
  <p>since the C= is built into the pattern as well, how can i strip it out before parsing the double?</p>