Skip to content

Instantly share code, notes, and snippets.

@ys
Created August 25, 2011 16:38
Show Gist options
  • Save ys/1171106 to your computer and use it in GitHub Desktop.
Save ys/1171106 to your computer and use it in GitHub Desktop.
Hack embedly regexp return to accept all top level domains from google
#this is a simple hack that replace the .com by a regexp for all top level domains
regexp = 'http:\\/\\/maps\\.google\\.com\\/maps\\?.*|http:\\/\\/maps\\.google\\.com\\/\\?.*|http:\\/\\/maps\\.google\\.com\\/maps\\/ms\\?.*'
regexp.gsub!( 'com', '[a-z]{2,}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment