[Solved] regex – can contain slash, just not at the start or end
This might work, although (phrase)+ isn’t something I’ve tested (and would be happy to hear feedback on): /^((\/)|([a-z]+\/{0,1}[a-z]+)+)$/ I may have gotten carried away with the brackets… 1 solved regex – can contain slash, just not at the start or end