title: pyparsing - Parse numbers with thousand separators
body: <p>So I am making a parser, and I noticed a problem. Indeed, to parse numbers, I have:</p>
  <pre class="lang-py prettyprint-override"><code>from pyparsing import Word, nums
  n = Word(nums)
  </code></pre>
  <p>This works well with numbers without thousands separators. For example, <code>n.parseString(&quot;1000&quot;, parseAll=True)</code> returns <code>(['1000'], {})</code> and therefore works.</p>
  <p>However, it doesn't work when I add the thousand separator. Indeed, <code>n.parseString(&quot;1,000&quot;, parseAll=True)</code> raises <code>pyparsing.ParseException: Expected end of text, found ','  (at char 1), (line:1, col:2)</code>.</p>
  <p>How can I parse numbers with thousand separators? I don't just want to ignore commas (for example, <code>n.parseString(&quot;1,00&quot;, parseAll=True)</code> should return an error as it is not a number).</p>