解析http post 返回消息时一个字符串形式的xml
我想获取字符串successful如下,
....successful......
我用了正则表达式,结果没有输出returnMsg,请建议
Pattern regex = Pattern.compile("(.*?)", Pattern.DOTALL);
Matcher matcher = regex.matcher(resp);
String returnMsg = null;
while (matcher.find()) {
returnMsg = matcher.group(1);
System.out.println("Return Message: " + returnMsg);