Skip to content

Instantly share code, notes, and snippets.

@marcgibbons
Created November 1, 2014 04:58
Show Gist options
  • Save marcgibbons/35a94b4eb8e65fd1ee2e to your computer and use it in GitHub Desktop.
Save marcgibbons/35a94b4eb8e65fd1ee2e to your computer and use it in GitHub Desktop.
Append slash to end of string, pre-pend querystring `?` symbol
r"^([^\.^\?]+[^\/])(\?[^\/.]+)?$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment