i have to extract id value of a product from url.
It is SEO Friendly (url routing).
Url can be
http://www.example.com/{param0}/{param1}/123/{param2}/{paramN}
Or
http://localhost:6847/{param0}/{param1}/123/{param2}/{paramN}
For the first url there is no problem. But for the second i want to extract ONLY the 123 or (ID) <-(It is an Integer).
I know that if i want to extract only numbers i can use
[0-9]+
but how can i tell regengine how to get all the numerical data from url except numbers that may have
:
before. i use :
((!:)[0-9]+)
it is not correct. Every advice is wellcamed:)
Thank you.