Created
January 18, 2017 12:59
-
-
Save xto3na/bf09db63587f7a90fd4519357c3fa9aa to your computer and use it in GitHub Desktop.
Regexp for id from url
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
/[^\.*+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