I'm trying to write a regex expression that will check that a string is in the formation of a Set of integers
ex: {1, 23, -501, 52, 2387329, 0}
So far I've got:
Pattern p = [({(([0-9]+,)*[0-9]+)})]
But it doesn't seem to be working... Can anyone help me out?
Thanks!