I\'m trying to retrieve every external link of a webpage using Ruby. I\'m using String.scan with this regex:
String.scan
/href=\"https?:[^\"]*|href=\'https?:[^\
Can you put groups in your regex? That would reduce your regular expressions to 1 instead of 2.