All,
Been struggling to not-match a single use case regarding a query (?). See below tests matches/non-matches. I dont want to match if the ? is following the first / after hostname segment, but do want match if ? follows any other path trailing /. Regarding language, a JS variant that doesn't require the escapes (\).
^/(solutions|solucoes|soluciones|oplossingen|losungen)/.+($|\?|\/($|\?))
Matches:
/solutions/test
/solutions/test/
/solutions/test?param
/solutions/test/?param
/solutions/test/testb
/solutions/test/testb/
/solutions/test/testb/?param
/solutions/test/testb?param
/solutions/?param (match - My problem child, dont want a match here)
Non-Matches
/solutions
/solutions/
/solutions?
