List of usage examples for java.lang String split
public String[] split(String regex)
From source file:Main.java
public static String[] convertStringToArray(String str) { return str.split("-"); }
From source file:Main.java
public static String[] parseMockDataCity(String str) { return str.split("(\\s{6})"); }
From source file:Main.java
public static String revWords(String str) { StringBuilder sb = new StringBuilder(); String revd = revStr(str); for (String s : revd.split(" ")) { sb.append(revStr(s));//from ww w . ja va 2s . c o m sb.append(" "); } return sb.toString(); }
From source file:Main.java
public static String[] getValuesFromString(String data) { return data.split("\\s*,\\s*"); }
From source file:Main.java
public static String parseNumber(String url) { return url.split("/")[6]; }
From source file:Main.java
public static String extractIdFromPath(String path) { return path.split("/")[2]; }
From source file:Main.java
public static String parseCategory(String url) { return url.split("/")[5]; }
From source file:Main.java
public static String getTAdA(String path) { return (path.split("handdata_id=")[1].split("n1")[0]); }
From source file:Main.java
public static String[] parseArray(String array) { return array.split(" "); }
From source file:Main.java
public static String getToutuNum(String path) { return (path.split("handdata_id=")[1].split("n1")[1].split("20&")[1]); }