3
I’m breaking my head to put together a regular expression that validates String:
/aluno/1/Teste dos Testes/1,2,3
String reg = "/aluno/[0-9]+/[^0-9]+/......."
I’m having trouble validating last field (the sequence of numbers) which:
- It can be infinitely numbers separated by a comma.
- Can’t end up in anything but a number.
That is, the examples "1,2,3,"
, "1,2,3a"
or "1,2,3,a"
cannot be accepted. Only valid sequences such as "1,2,3,4,5,6"
...
Someone willing to help??
It worked. Thank you very much!
– André Raubach