Created
May 29, 2013 14:53
-
-
Save coolgarifTech/5670892 to your computer and use it in GitHub Desktop.
A small helper function that strips the Node ID from the parsed URL using Regex statement
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
def doRegEX(urlString): | |
regex = re.compile("([^/]*)$") | |
stripedURLComponent = regex.search(urlString.path) | |
return stripedURLComponent.group(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment