fork(2) download
  1. import java.io.IOException;
  2. import java.util.Arrays;
  3.  
  4. public class Main {
  5. public static void main(String args[]) throws IOException {
  6. final String str = "0x0441,a,2,3,4,0x0442,f,dws,212";
  7. Arrays.stream(str.split("(?=\\wx\\w\\w\\w\\w)")).forEach(System.out::println);
  8. }
  9. }
Success #stdin #stdout 0.09s 48716KB
stdin
Standard input is empty
stdout
0x0441,a,2,3,4,
0x0442,f,dws,212