Skip to content

Instantly share code, notes, and snippets.

@abeMedia
Created Nov 1, 2015
Embed
What would you like to do?
Simple regex to extract Google Plus ID from a user submitted URL
/(?:https?:\/\/)?(?:plus\.google\.com\/)?(?:.\/.\/*)?([^\/\s]*)/i
@HMAZonderland

This comment has been minimized.

Copy link

@HMAZonderland HMAZonderland commented Jul 20, 2016

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