A url looks like:
http://www.example.com/cgi-bin/blahblah?&PC=abd23423&uy=020
I need to extract the value: abc23423
I tried this regex but its not working:
rx = re.compile(r'PC=(\w*)&uy=')
I then I did:
pc = rx.search(url).groups()
but I get an error:
attribute error: nonetype object has no attribute groups.