Java 正则表达式未找到匹配项错误
遵循正则表达式给我错误java.lang.IllegalStateException: No match found
String requestpattern = "^[A-Za-z]+ \\/+(\\w+)";
Pattern p = Pattern.compile(requestpattern);
Matcher matcher = p.matcher(requeststring);
return matcher.group(1);
其中请求字符串为
POST //upload/sendData.htm HTTP/1.1
任何帮助将不胜感激。