title: Regex with lookbehind not working using re.match
body: <p>The following python code:</p>
  
  <pre><code>import re
  
  line="http://google.com"
  procLine = re.match(r'(?&lt;=http).*', line)
  if procLine.group() == "":
      print(line + ": did not match regex")
  else:
      print(procLine.group())
  </code></pre>
  
  <p>does not match successfully, and outputs the following error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File
    "C:/Users/myUser/Documents/myScript.py", line 5,
    in 
        if procLine.group() == "": AttributeError: 'NoneType' object has no attribute 'group'</p>
  </blockquote>
  
  <p>When I replace the regex with just .* it works fine which suggests it's the regex that is in error, however, on <a href="https://regex101.com/" rel="noreferrer">https://regex101.com/</a> when I test my regex and string for python flavor it appears to match fine.</p>
  
  <p>Any ideas?</p>