Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created November 18, 2013 14:29
Show Gist options
  • Save kaosf/7528681 to your computer and use it in GitHub Desktop.
Save kaosf/7528681 to your computer and use it in GitHub Desktop.
STDIN.each_line do |l|
l.scan(/href="([^"]*)"/).flatten.each do |x|
puts x.slice(0, x.length - 4).split('/')[1]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment