0

I have a text full of link address with style

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

I use re.findall('"((http)s?://.*?)"', srcCode) in Python 3.4 to extract all links, but doesn't work. How can I fix it?

Alan Moore
  • 73,866
  • 12
  • 100
  • 156
user2517728
  • 57
  • 2
  • 6

1 Answers1

1

swap the quotes

re.findall("'((http)s?://.*?)'", srcCode)
griffon vulture
  • 6,594
  • 6
  • 36
  • 57