1、获取"GET /topic/1410-5813 -"中 1410-5813
import org.apache.commons.lang3.StringUtils;
String s = StringUtils.substringBetween(str, "/", " -");
String str="name/123123123 -"; String s = StringUtils.substringBetween(str, "/", " -"); System.out.println(s);
sout:123123123