我想要的是一条与路相匹配的东西,例如没有域名的URL网络,或无地名录,某种/类似/thi/和/或低劣s-dashes
So in another word, the characters allowed are numbers, alphabets, dash, and slash. First and last character can t be dash nor slash.
最好的是:
^[a-z0-9]+[a-z0-9(/)(-)]*[a-z0-9]+$
但它失败
a/b-c/d