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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -