title: Can not find a specific regular expressions
body: <p>I am trying to scrap specific information from the site but I am receiving an error. Here is the simplified version of the main problem:</p>
  <pre><code>import re
  
  b='href=&quot;/bp/vendor?vendorCodes=C901U&quot;&gt;C901U&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div heyaa'
  
  c=re.search('href=&quot;/bp/vendor?vendorCodes=C901U&quot;&gt;C901U&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div',b)
  </code></pre>
  <p>If I try to find what is in c I receive this error:</p>
  <pre><code>c.group()
  
  Traceback (most recent call last):
    File &quot;&lt;pyshell#87&gt;&quot;, line 1, in &lt;module&gt;
      c.group()
  AttributeError: 'NoneType' object has no attribute 'group'
  </code></pre>
  <p>Thanks in advance.</p>