title: Extracting number from string using lua
body: <p>I have the following string as an input:</p>
  
  <p>"totalling  7,525.07"</p>
  
  <p>In the code below the string is indicated as "a.message"</p>
  
  <pre><code>print (string.match(a.message, "(%d+),(%d+)(%d+)(%d+).(%d+)") )
  
  sum = (string.match(a.message, ".-(%d+). -([%d%.%,]+)") )
  </code></pre>
  
  <p>The code above only produces a number 7 rather than the whole number.  Ideally I'm after the whole number but my code is stripping out the decimal from the figure.  I've tried all sorts of different configurations but don't seem to getting anywhere.</p>