Skip to content

Instantly share code, notes, and snippets.

@jacksonpires
Created May 31, 2020 23:17
Show Gist options
  • Save jacksonpires/371f1fe5c19844bcfabec6a826a5f046 to your computer and use it in GitHub Desktop.
Save jacksonpires/371f1fe5c19844bcfabec6a826a5f046 to your computer and use it in GitHub Desktop.
Regex to get path/id between last slash and question mark
/[^\/?]+(?=\?|$)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment