title: MarkLogic - How to Escape Question Mark in a request uri regular expression?
body: <p>My main goal is that I have this expression in a uri-rewriter:</p>
  
  <pre><code>&lt;request uri="^/(.+)/name=(.+)$" endpoint="/endpoint.xqy"&gt;
     &lt;uri-param name="level"&gt;$1&lt;/uri-param&gt;
     &lt;uri-param name="name"&gt;$2&lt;/uri-param&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>which reads uris of the form .../level/name= __</p>
  
  <p>but I want to replace the slash before the name with a question mark to read the following form  .../level?name= __</p>
  
  <p>I want to treat the question mark as literal in the uri. I saw that special characters in a regex can be escaped with a " \ "</p>
  
  <p>But it does not work on question marks or ampersand ... It works on + or . Which is weird. Can anyone please help?</p>