fork download
  1. # -*- coding: utf-8 -*-
  2. import re
  3. p = re.compile(u'(\d*[.,]?\d+)\s*(?:m\u00B2|qm)')
  4. s = u"wohnung from 71,556m² to 183.4456m²"
  5. print(p.findall(s))
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
[u'71,556', u'183.4456']