title: Python regexp to match numbers with spaces
body: <p>I'm regexp newbie and I need some help.
  I have text which represents table. I know that it will consist of 7 columns:</p>
  
  <pre><code>| int | int mixed with -. | unicode string with everything | float | float | int | float |
  </code></pre>
  
  <p>problem is that float is expressed using spaces between thousands (1234,43 => 1 234,43).
  Moreover string can contain spaces and end with numbers.
  I tried something like this (for each line striped of new line char):</p>
  
  <pre><code>regex = re.compile(r"(\d+) ([\d.-]+) (.*) ([\d+ ]?\d+,\d+) ([\d+ ]?\d+,\d+) (\d+) ([\d+ ]?\d+,\d+)$", re.UNICODE)
  w = regex.findall(line)
  </code></pre>
  
  <p>Unfortunately it doesn't work in all cases. Some test data:</p>
  
  <pre><code>49 602 DSKOD SMCX 262,59 1 131,30 1 1 131,30
  49 602 DSKOD SMCX 3 5 262,59 1 131,30 1 1 131,30
  50 61-201 łóćźż 1 2 669,50 334,75 1 334,75
  51 1-214 AÓŻĆÓDS" 70,35 350,18 3 105,53
  </code></pre>
  
  <p>Cases with thousands are problematic as I'm getting:</p>
  
  <pre><code>[]
  []
  [(u'50', u'61-201', u'\u0142\xf3\u0107\u017a\u017c 1 2', u'669,50', u'334,75', u'1', u'334,75')]
  [(u'51', u'1-214', u'A\xd3\u017b\u0106\xd3DS"', u'70,35', u'350,18', u'3', u'105,53')]
  </code></pre>
  
  <p>In 3rd example I would like <code>2</code> at the end of string to be in next column.
  Do you know have some clues how to match this properly, on Python 2.7? I'll fight with this unicode later.</p>