I would like to map the path in Url, but ignoring the request. The regular expression must include an optional trailing slash before the call.
Examples of URLs that must match the action:
/path/?a=123&b=123 /path?a=123&b=123
So, the line '/ path' must match any of the above URLs.
I tried the following regular expression: (/path[^?]+).*
But this will only match the URLs, such as the first example above: /path/?a=123&b=123
Any idea how I could make it fit the second example without a trailing slash?
Regex is a requirement.
source share