I am currently using this regex to get the page number from the url:
@"\/(\d+)$";
Which worked fine for urls like:
/some_category/2
/some_category2/323
My urls now have some additional querystring values (optionally), so the current regex is not working for these cases.
So now I need a regex to support:
/some_category/2
/some_category2/323
/some_category2/323?a=1&b=2
/some_category2/323?&c=123&a=1&b=2
Any help would be appreciated.
I am using a route with wildcards so I can use the built in asp.net mvc for this.