Skip to content

Instantly share code, notes, and snippets.

@jgv
Created November 19, 2010 22:27
Show Gist options
  • Save jgv/707315 to your computer and use it in GitHub Desktop.
Save jgv/707315 to your computer and use it in GitHub Desktop.
[regex]$isgd = "(?:https?://)?is.gd/([^?/ ]*)\b" # No API to speak of
[regex]$supr = "(?:https?://)?su.pr/([^?/ ]*)\b" # Stumble Upon has the StumblyUpon toolbar wrapped around it
[regex]$trim = "(?:https?://)?tr.im/([^?/ ]*)\b" # Seems to be dying
[regex]$ffim = "(?:https?://)?ff.im/([^?/ ]*)\b" # note: ff.im is only FriendFeed entries
[regex]$xrl = "(?:https?://)?xrl.us/([^?/ ]*)\b"
[regex]$bitly = "(?:https?://)?bit.ly/([^?/ ]*)\b"
[regex]$cligs = "(?:https?://)?cli.gs/([^?/ ]*)\b"
[regex]$twibz = "(?:https?://)?([^/]+\.twi.bz/[^?/ ]*)\b"
[regex]$snip = "(?:https?://)?(?:snurl|snipr|snipurl)\.com/([^?/ ]*)\b"
[regex]$twurl = "(?:https?://)?twurl.nl/([^?/ ]*)\b"
[regex]$tiny = "(?:https?://)?tinyurl.com/([^?/ ]*)\b"
[regex]$shrink = "(?:https?://)?shrinkster.com/([^?/ ]*)\b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment