Bonsoir
est ce que c'est ça que tu veux https://regex101.com/r/TOqAlQ/1
Quand j'étais petit, la mer Morte n'était que malade.
George Burns
J'ai trouvé, c'était une histoire de parenthèses :
^([0-9]{5})\/(([A-Za-z0-9]|-)+)\/repertoire\/$
Sauf que ta seconde regex (tout comme la première) ne retourne rien dans
[ { "content": "28100/dreux/repertoire/", "isParticipating": true, "groupNum": 0, "startPos": 0, "endPos": 23 }, { "content": "0", "isParticipating": true, "groupNum": 1, "startPos": 4, "endPos": 5 }, { "content": "dreux", "isParticipating": true, "groupNum": 2, "startPos": 6, "endPos": 11 }, { "content": "x", "isParticipating": true, "groupNum": 3, "startPos": 10, "endPos": 11 } ] ]