I want my regex to match some values, but not accept others. The base regex is ^/.+/.+$
I want to not accept questions mark in the last / part, and not accept people or dungen as the first / part.
MATCH: /a/b/c/d
MATCH: /a/b
NO MATCH: /people/b/c/d
MATCH: /peoples/b/c/d
NO MATCH: /a/b/c?x=y
I know you can use [^ABCD] in order to NOT match characters, but it won't work with whole strings.
Any help?