title: Does BeautifulSoup .select() method support use of regex?
body: <p>Suppose I want to parse a html using BeautifulSoup and I wanted to use css selectors to find specific tags. I would "soupify" it by doing</p>
  
  <pre><code>from bs4 import BeautifulSoup
  soup = BeautifulSoup(html)
  </code></pre>
  
  <p>If I wanted to find a tag whose "id" attribute has a value of "abc" I can do</p>
  
  <pre><code>soup.select('#abc')
  </code></pre>
  
  <p>If I wanted to find all "a" child tags under our current tag, we could do</p>
  
  <pre><code>soup.select('#abc a')
  </code></pre>
  
  <p>But now, suppose I want to find all "a" tags whose 'href' attributes has values that end in "xyz" I would want to use regex for that, I was hoping something along the lines of </p>
  
  <pre><code>soup.select('#abc a[href] = re.compile(r"xyz$")')
  </code></pre>
  
  <p>I can not seem to find anything that says BeautifulSoup's .select() method will support regex. </p>