title: TypeError on matching pattern with module "re"
body: <p>I'm trying to extract the price of the item from my programme by parsing the HTML with help of "bs4" BeautifulSoup library</p>
  
  <pre><code>import requests
  import re
  from bs4 import BeautifulSoup
  request = requests.get("https://www.aliexpress.com/item/Original-Nokia-Lumia-1020-Nokia-Phone-41MP-Camera-Dual-Core-1-5GHz-32GB-ROM-2-GB/32415650302.html?spm=2114.search0104.3.1.67455f99ocHZOB&amp;ws_ab_test=searchweb0_0,searchweb201602_3_10152_10065_10151_10344_10068_10342_10343_10059_10340_10341_10696_100031_10084_10083_10103_524_10618_10624_10307_10623_10622_10621_10620,searchweb201603_43,ppcSwitch_5&amp;algo_expid=a182685b-0e22-4a88-a7be-6a51dfbeac21-3&amp;algo_pvid=a182685b-0e22-4a88-a7be-6a51dfbeac21&amp;priceBeautifyAB=0")
  content = request.content
  soup = BeautifulSoup(content,"html.parser")
  element = soup.find("span",{"itemprop":"price", "id":"j-sku-price","class":"p-price"},text= not None)
  pattern_1 = re.compile("/d+./d+").findall(element).text.strip()
  print(pattern_1)
  print(element)
  </code></pre>
  
  <p>and here is what I get as output :</p>
  
  <pre><code>Traceback (most recent call last):
    File "/root/Desktop/Visual_Studio_Files/Python_sample.py", line 9, in &lt;module&gt;
      pattern_1 = (re.compile("/d+./d+").findall(str_ele)).text.strip()
  TypeError: expected string or bytes-like object
  </code></pre>