I have a situation where I am rerouting url as follows:
/test-url/one/two/index.aspx to /Categories.aspx?MID=one&CID=two
I am using the following regex :
^/test-url/([^/]*)/([^/]*)/index.aspx which correctly matches when I have a structure like above. Now I may also have the structure as /test-url/one/index.aspx and would
like to route it to /Categories.aspx?MID=one&CID=. However my regex (with obvious reasons) does not match this case. I am not sure how to take care
of multiple grouped matches?
Please help!
Thanks
Swanand