I am updating a script that is parsing google search results. Google changed the way the results are returned and I need to update my regex. Currently the issue is getting the regex to stop after seeing the ampersand.
Current regex re_urls = re.compile('<a href="/url\?q=(.*?)"')
This returns for example:
http://www.example.com/test&sa=U&ei=3gdhVOfSJOr1iQKnwoBg&ved=0CBQQFjAA&usg=AFQjCNHPaPBdpjIJFynGKhW1As1fg9r8Aw
How do I get it to just return http://www.example.com/test