I have a problem with String.split(String regex). I want to split my string in parts of 4 characters each.
String stringa = "1111110000000000"
String [] result = stringa.split("(?<=\\G....)")
When I print result I expect 1111,1100,0000,0000 but result is 1111,110000000000. How can I resolve? Thanks.