[Solved] regex – can contain slash, just not at the start or end
[ad_1] 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 [ad_2] solved regex – can contain slash, just not at the start or end