81,122
社区成员




String str="sh -c 'ls / -lh' 232 'l2 / -lh'";
String regex="'[^']*'";
Matcher m=Pattern.compile(regex, Pattern.MULTILINE).matcher(str);
List<String> list=new ArrayList<String>();
while(m.find()){
list.add(m.group());
}
System.out.println(list);