I would like to detect all these url's with a regular expression:
/liga-femenina-1
/liga-femenina-1/equipos
/liga-femenina-1/resultados
/liga-femenina-1/estadisticas
/liga-femenina-1/buscador
/liga-femenina-2
/liga-femenina-2/equipos
/liga-femenina-2/resultados
/liga-femenina-2/estadisticas
/liga-femenina-2/buscador
I have defined this regular expression:
\/liga-femenina-(1|2)\/?\w*
This regular expression only detects the first url.
But, If I remove the first url, the regular expression detects correctly the next url when before doesn't do it.
How can I make that my regular expression detects all the urls? What am I doing wrong?