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.
/rootor do you want to match URLs like this if they do not start wit/root?/rootin front, but I don't want to match it. Kev's asnwer is exactly what I was looking for.