I'm breaking my head to put together a regular expression that validates the String:
/aluno/1/Teste dos Testes/1,2,3
String reg = "/aluno/[0-9]+/[^0-9]+/......."
I'm not able to validate the last field (the sequence of numbers) that:
- Can be infinite numbers separated by commas.
- You can not end up with anything other than a number.
That is, examples "1,2,3,"
, "1,2,3a"
or "1,2,3,a"
can not be accepted. Only valid sequences, such as "1,2,3,4,5,6"
...
Someone willing to help ??