title: Python: Regular expression to get price from string error
body: <p>I'm trying to make syre everything but numeric values and the decimal point are left in.</p>
  
  <p><strong>String</strong></p>
  
  <pre><code>[\n\t\t€249.99\xa0\n\t\t\t]
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>str(re.compile("^[0-9]\d*(\.\d+)?$", PRICE[0]))
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "getPrice.py", line 59, in &lt;module&gt;
      JSON_FILE.write("{\"price\":\"" + str(re.compile("^[0-9]\d*(\.\d+)?$", PRICE[0])) + "\"},")
    File "C:\...\Python\Python36-32\lib\re.py", line 233, in compile
      return _compile(pattern, flags)
    File "C:\...\Python\Python36-32\lib\re.py", line 301, in _compile
      p = sre_compile.compile(pattern, flags)
    File "C:\...\Python\Python36-32\lib\sre_compile.py", line 562, in compile
      p = sre_parse.parse(p, flags)
    File "C:\...\Python\Python36-32\lib\sre_parse.py", line 856, in parse
      p = _parse_sub(source, pattern, flags &amp; SRE_FLAG_VERBOSE, False)
  TypeError: unsupported operand type(s) for &amp;: 'lxml.etree._ElementUnicodeResult' and 'int'
  </code></pre>