Skip to content

Instantly share code, notes, and snippets.

@fumokmm
Created November 23, 2010 14:14
Show Gist options
  • Save fumokmm/711816 to your computer and use it in GitHub Desktop.
Save fumokmm/711816 to your computer and use it in GitHub Desktop.
'UTF-8'.with { enc ->
URLDecoder.decode(new URL('http://h.hatena.ne.jp/').getText(enc), enc)
}.findAll(~/["']\/keyword\/(.+?)["']/) { match, _1 ->
_1
}.sort().unique().each {
println it
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment