Skip to content

Instantly share code, notes, and snippets.

@abemedia
Created November 1, 2015 04:46
Show Gist options
  • Save abemedia/17d3b86d39a8b7506f86 to your computer and use it in GitHub Desktop.
Save abemedia/17d3b86d39a8b7506f86 to your computer and use it in GitHub Desktop.
Simple regex to extract Google Plus ID from a user submitted URL
/(?:https?:\/\/)?(?:plus\.google\.com\/)?(?:.\/.\/*)?([^\/\s]*)/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment