title: Servlet URL pattern to match a URL that ends with a slash ("/")
body: <p><strong>I'd like to specify a Servlet URL pattern to match a URL that ends with a slash ("/") and only a slash.</strong></p>
  
  <p>I understand that the pattern</p>
  
  <pre>    /example/path/*</pre>
  
  <p>will match a URL of</p>
  
  <pre>    http://example.com/example/path/</pre>
  
  <p>and that this appears to work. However, that same pattern would also match URLs of</p>
  
  <pre>    http://example.com/example/path/a/
      http://example.com/example/path/b/
      http://example.com/example/path/c/</pre>
  
  <p>I'm merely looking for a URL pattern that will match <code><a href="http://example.com/example/path/" rel="nofollow noreferrer">http://example.com/example/path/</a></code> only without also matching <code><a href="http://example.com/example/path/a/" rel="nofollow noreferrer">http://example.com/example/path/a/</a></code> and so on.</p>
  
  <p>Clarification: a URL pattern ending with a slash is not allowed.</p>