title: Java RegEx no match found error
body: <p>Following regex giving me <code>java.lang.IllegalStateException: No match found</code> error</p>
  
  <pre><code>String requestpattern = "^[A-Za-z]+ \\/+(\\w+)";
  Pattern p = Pattern.compile(requestpattern);
  Matcher matcher = p.matcher(requeststring);
  return matcher.group(1);
  </code></pre>
  
  <p>where request string is </p>
  
  <pre><code>POST //upload/sendData.htm HTTP/1.1
  </code></pre>
  
  <p>Any help would be appreciated.</p>