The 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 is the query string
POST //upload/sendData.htm HTTP/1.1
Any help would be appreciated.
source share