title: Forward slashes having variable number of path parameter in Flask
body: <p>I have made an API in Flask which has the following route defined. </p>
  
  <p><code>@app.route("/&lt;project&gt;/&lt;branch&gt;/&lt;patch&gt;")</code></p>
  
  <p>Everything works as expected, however, the issue is, at times, there is a possibility that the <code>branch</code> parameter contains two words seperated by a forward slash, like this: <code>a/b</code>. </p>
  
  <p>My function on top of which I have the route defined works fine when the request is something like this:</p>
  
  <p><code>https://webservice-hostname/abc/def/ghi</code></p>
  
  <p>But, it fails to work in cases when the request is on the URL like this: 
  <code>https://webservice-hostname/abc/def/ghi/jkl</code></p>
  
  <p>In this case, I want it to be like this:  </p>
  
  <pre><code>project = abc
  branch = def/ghi
  patch = jkl
  </code></pre>
  
  <p>Also, in my case it is guaranteed that only the branch variable can sometimes have two words (seperated by a forward slash) or have a single word. The other variables are guaranteed to be single word. </p>
  
  <p>Is there any way I can achieve this? </p>