I want to match the following URL
/root/folder/123
without the /root
in front of it. I was trying around with this pattern ((?!root).)*$
which I found in this answer: https://stackoverflow.com/a/406408/237312
but it doesn't work either, because it still matches oot/folder/123
. I thought about something like (?!(root)+.)*$
which matches nothing, so I'm looking for an answer here.