Skip to content

Instantly share code, notes, and snippets.

@vaiorabbit
Created January 3, 2023 05:02
Show Gist options
  • Save vaiorabbit/3118fbc67c5c88428c5fcf29e7bf7fb0 to your computer and use it in GitHub Desktop.
Save vaiorabbit/3118fbc67c5c88428c5fcf29e7bf7fb0 to your computer and use it in GitHub Desktop.
require 'uri'
google_link = ARGV[0]
encoded_url = /.+url=(.+)&.+/.match(google_link)[1]
decoded_url = URI.decode_www_form(encoded_url)
puts decoded_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment