title: Regular expression to find dollar amounts but not match IP address
body: <p>I have sections of text that may contain both dollar amounts, that may or may not be prepended with a dollar sign, and IP addresses. I need a regular expression that will identify the dollar amounts but not match portions of the IP addresses.</p>
  
  <p>For example if the text is:</p>
  
  <pre><code>12.34 56.78.90.12 34.56
  </code></pre>
  
  <p>My starting attempt was:</p>
  
  <pre><code>([1-9]\d*\.\d{2})
  </code></pre>
  
  <p>This is what I want to match, but it matches parts of the  IP addresses. I then tried:</p>
  
  <pre><code>[^\.]([1-9]\d*\.\d{2})[^\.]
  </code></pre>
  
  <p>But this was worse on almost all cases.</p>
  
  <p>The regular expression needs to match "12.34" and "34.56", but not "56.78" or "90.12". Any help would be appreciated.</p>