title: Regex match number in string C#
body: <p>I am trying to get the total price from a receipt with Regex.</p>
  
  <p>The formatting is:</p>
  
  <pre><code>TOTAL     15.40
  </code></pre>
  
  <p>The goal is only to get the price out of the string.</p>
  
  <p>I started with <code>TOTAL[ .0-9]</code>, but this only returned the word <code>TOTAL</code>.</p>
  
  <p>I googled around and putted this one together but can't get it to work:</p>
  
  <pre><code>TOTAL(\\s+)(?&lt;value&gt;[.0-9]+)
  </code></pre>
  
  <p>I have made the following code:</p>
  
  <pre><code>sRegex = "TOTAL(\\s+)(?&lt;value&gt;[.0-9]+)";    
  Match match = Regex.Match(this.sHTMLResult, sRegex, RegexOptions.None);
  if (match.Success)
      Console.Out.WriteLine("regex good");
  else
      Console.Out.WriteLine("regex fail");
  </code></pre>
  
  <p>But the regex doesn't return a success.</p>
  
  <p>I try to get it out of a HTML file formatted like this: </p>
  
  <pre><code>TOTAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;15.40
  </code></pre>