Skip to content

Instantly share code, notes, and snippets.

@coolgarifTech
Created May 29, 2013 14:53
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 coolgarifTech/5670892 to your computer and use it in GitHub Desktop.
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
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