@Test public void testSplit() { String[] parts = DelimiterUtil.split("MTV\\ Music", ' '); assertEquals(parts.length, 1); assertEquals(parts[0], "MTV\\ Music"); parts = DelimiterUtil.split("MTV Music", ' '); assertEquals(parts.length, 2); assertEquals(parts[0], "MTV"); assertEquals(parts[1], "Music"); }
public static String[] split(String value, char delimiter) { if (value == null || value.length() == 0) { return new String[0]; } else { String regex = "(?<!\\\\)" + Pattern.quote(delimiter + ""); return value.split(regex); } }
DelimiterUtil { public static String[] split(String value, char delimiter) { if (value == null || value.length() == 0) { return new String[0]; } else { String regex = "(?<!\\\\)" + Pattern.quote(delimiter + ""); return value.split(regex); } } }
DelimiterUtil { public static String[] split(String value, char delimiter) { if (value == null || value.length() == 0) { return new String[0]; } else { String regex = "(?<!\\\\)" + Pattern.quote(delimiter + ""); return value.split(regex); } }  }
DelimiterUtil { public static String[] split(String value, char delimiter) { if (value == null || value.length() == 0) { return new String[0]; } else { String regex = "(?<!\\\\)" + Pattern.quote(delimiter + ""); return value.split(regex); } }  static String escape(String value, char delimiter); static String unescape(String value, char delimiter); static String[] split(String value, char delimiter); }
DelimiterUtil { public static String[] split(String value, char delimiter) { if (value == null || value.length() == 0) { return new String[0]; } else { String regex = "(?<!\\\\)" + Pattern.quote(delimiter + ""); return value.split(regex); } }  static String escape(String value, char delimiter); static String unescape(String value, char delimiter); static String[] split(String value, char delimiter);  }