Following regex giving me java.lang.IllegalStateException: No match found error
String requestpattern = "^[A-Za-z]+ \\/+(\\w+)";
Pattern p = Pattern.compile(requestpattern);
Matcher matcher = p.matcher(requeststring);
return matcher.group(1);
where request string is
POST //upload/sendData.htm HTTP/1.1
Any help would be appreciated.
\w(word character) is[A-Za-z0-9_]. It won't match "/", "." or "/" (they all appear after "//").