I'm using Python to do a very simple regex on a domain. I can't figure out why line 5 below doesn't return a match - what am I doing wrong?
In [1]: import re
In [2]: a = re.compile("example\.com", re.IGNORECASE)
In [3]: a.match("example.com")
Out[3]: <_sre.SRE_Match at 0x10b3a3b90>
In [4]: a.match("example.com/dlkfdsf")
Out[4]: <_sre.SRE_Match at 0x10b3a36b0>
In [5]: a.match("http://www.example.com/sdklfjsdf")
# No match