fork download
  1. class Test {
  2. public static void main(String[] arg) {
  3. String a = "str\\|2|str3=str4";
  4. String split = "(?<=\\|\\d)\\|";
  5. for(String v : a.split(split)) {
  6. System.out.println(v);
  7. }
  8. }
  9. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
str\|2
str3=str4