regex - find all links with regular expression in python -


this question has answer here:

i have text full of link address style

href=\'http://address.com\' 

i use re.findall('"((http)s?://.*?)"', srccode) in python 3.4 extract links, doesn't work. how can fix it?

swap quotes

re.findall("'((http)s?://.*?)'", srccode) 

Comments