Skip to content

Instantly share code, notes, and snippets.

Created May 28, 2012 21:48
Show Gist options
  • Save anonymous/2821328 to your computer and use it in GitHub Desktop.
Save anonymous/2821328 to your computer and use it in GitHub Desktop.
installs = {}
diags_container.blobs.each do|blob|
puts blob.url
blob.url =~ /\b([A-F0-9]{8}(?:-[A-F0-9]{4}){3}-[A-Z0-9]{12}\b)/i
unless $1.nil?
if installs[$1].nil?
installs[$1] = [] #init array
end
installs[$1] << blob.url
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment