Skip to content

Instantly share code, notes, and snippets.

@abemedia
Created November 1, 2015 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abemedia/30fda7e8fd4602c820bf to your computer and use it in GitHub Desktop.
Save abemedia/30fda7e8fd4602c820bf 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
@HMAZonderland
Copy link

The url www.plus.google.com/114589177088625744570/about does validate as valid. Where it isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment