Created
November 18, 2013 14:29
-
-
Save kaosf/7528681 to your computer and use it in GitHub Desktop.
a part of https://gist.github.com/kaosf/7528577
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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