62,614
社区成员
发帖
与我相关
我的任务
分享
String s = "http://demo/demo?src=htttp://baidu.com/1.mv&dst=/test/test&mds=123123123123";
Matcher m = Pattern.compile("src=(.*?)&dst=(.*?)&mds=(.*)").matcher(s);
while (m.find()) {
System.out.println(m.group(1)+"---->"+m.group(2)+"---->"+m.group(3));
}