Skip to content

Instantly share code, notes, and snippets.

@xto3na
Created January 18, 2017 12:59
Show Gist options
  • Save xto3na/bf09db63587f7a90fd4519357c3fa9aa to your computer and use it in GitHub Desktop.
Save xto3na/bf09db63587f7a90fd4519357c3fa9aa to your computer and use it in GitHub Desktop.
Regexp for id from url
/[^\.*+product_id=][0-9*].*/
Чтоб достать id из строки '/index.php?route=product/product&product_id=1643' // Результат - '1643'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment