title: How to use Regex in java to find a value in a string between characters
body: <p>I am trying to find some rates in a table using Regular Expressions that I am reading into a string from HTML.  Here is an example:</p>
  
  <pre><code>&lt;td&gt;Euro&lt;/td&gt;
  &lt;td class='rtRates'&gt;&lt;a href='/graph/?from=USD&amp;amp;to=EUR'&gt;0.772199&lt;/a&gt;&lt;/td&gt;
  &lt;td class='rtRates'&gt;&lt;a href='/graph/?from=EUR&amp;amp;to=USD'&gt;1.295003&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I am trying to find the numbers contained in the above string.  They constantly change so it can't be a hard-coded number search.</p>
  
  <p>I've tried using something similar to this:  to=EUR'>(...)</p>
  
  <p>but it only returns the 0.7, not the rest.  Any help is appreciated!</p>
  
  <p>EDIT:  some code was requested, so here it is</p>
  
  <pre><code>      String re2="to=EUR'&gt;(...)";   // Float 1
  
      Pattern p = Pattern.compile(re2,Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
      Matcher m = p.matcher(webData);
  
      if (m.find())
      {
          String float1=m.group(1);
          System.out.print("("+float1.toString()+")"+"\n");
      }
  </code></pre>