/**
* splitColor 分割颜色字符串
* before:"rgb(123,34,45,1),#789052,rgb(123,34,45,1),rgb(123,34,45,1),yellow"
* after: ["rgb(123,34,45,1)","#789052","rgb(123,34,45,1)","rgb(123,34,45,1)","yellow"]
* @param input
* @return
*/
public static String[] splitColor(String input) {
int nParens = 0;
int start = 0;
List<String> result = new ArrayList<String>
java 切割字符串以逗号切割 但是保留括号内的逗号
最新推荐文章于 2022-11-26 21:23:19 发布