Created
November 1, 2015 04:46
-
-
Save abemedia/30fda7e8fd4602c820bf to your computer and use it in GitHub Desktop.
Simple regex to extract Google Plus ID from a user submitted URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/(?:https?:\/\/)?(?:plus\.google\.com\/)?(?:.\/.\/*)?([^\/\s]*)/i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The url
www.plus.google.com/114589177088625744570/about
does validate as valid. Where it isn't.