所以我试图分割一个字符串
String[] tokens = coded_string.split("\\)|\\(|\\,|\\s+");
所以如果编码字符串是students = load(classlist.csv)
所有标记都很好
token[0] = "students"
token[1] = "="
token[2] = "load"
token[3] = "classlist.csv"
但是当students = load ( classlist.csv )
括号之间的字符串空格我得到空标记时,为什么会这样,我该如何解决?
token[0] = "students"
token[1] = "="
token[2] = "load"
token[3] = ""