Created
November 1, 2015 04:46
-
-
Save abemedia/17d3b86d39a8b7506f86 to your computer and use it in GitHub Desktop.
Simple regex to extract Google Plus ID from a user submitted URL
This file contains 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