I'm trying to match every string (url) starting with "string" and not ending in -[number]
So I made this regex
string/?.*(?!-[0-9]*)
which, for what I understood, is supposed to be read as:
match every string starting with "string", having possibly a '/' after it, having any string after it not including '-' followed by any number or numbers.
here's my test strings
string/kkk/aaa/sss/ddd-123
string/kkk/aaa/sss/ddd
string/kkk/aaa/sss
string/kkk/aaa
string/kkk
string/
string/kkk/
string/kkk/aaa/
string/74002
the regex just match everything, no matter what.
Could someone tell me where I went wrong ?