I hava such this list
List<String> lista = Arrays.asList("[2017-07-01,1234567890,1234567890,06CA...]",
"[2017-07-02,1234567890,txt,06CA...]");
I tried this regex
(\\d{4}-\\d{2}-\\d{2})(\\,)(\\w+)(\\,)(\\w+)(\\,)(\\w+)\\(w+)
But this give me
Group 0 : 2017-07-02,1234567890,1234567891,02BA...
Group 1 : 2017-07-02
Group 2 : ,
Group 3 : 1234567890
Group 4 : ,
Group 5 : 1234567891
Group 6 : 06CA...
I expect output such this:
Group 0: date
Group 1: no1
Group 2: no2 or txt
Group 3: code