Lets say I have :
voyage/asie/emirats-arabes-unis/dubai/
I want to check if there is only /asie/emirats-arabes-unis/ but not /dubai/.
Is there a way to say capture everything but stop capturing if / is met ?
Actually I was using this voyage\/(.+)\/(.+)\/ but obviously there is a problem in those specific case.