尝试获取 html 的结果:
private static final String PATTERN = "(ReportSession=)[0-9A-Za-z]{24}";`
...
Pattern pattern = Pattern.compile(PATTERN);
Matcher matcher = pattern.matcher(".axd?ReportSession=frytm055l51aigbigh5xzrin\u");
if(matcher.find()){
textView1.setText(matcher.group(1));
}
输出是,但我需要在反斜杠之前ReportSession=
得到整个。ReportSession=frytm055l51aigbigh5xzrin
有任何想法吗?