title: HaProxy path regex not working as expected
body: <p>With the following urls I need to use backend A</p>
  
  <pre><code>/yyy/some-name/zzz/some-other-name
  /yyy/some-name/zzz/some-other-name/1
  /yyy/some-name/zzz/some-other-name/2
  /yyy/some-name/zzz/some-other-name/3
  /yyy/some-name/zzz/some-other-name/4
  </code></pre>
  
  <p>and with these urls backend B</p>
  
  <pre><code>/old/yyy/some-name/zzz/some-other-name
      /yyy/some-name/zzz/some-other-name/1?param=test
      /yyy/some-name/zzz/some-other-name/2?param=test
  </code></pre>
  
  <p>I'm using the following rules</p>
  
  <pre><code>acl rule_a path_reg -i ^\/yyy\/.+\/zzz\/([a-z]|-|[0-9])*($|\/[1-4])$
  use_backend backend_a if rule_a
  
  default_backend backend_b
  </code></pre>
  
  <p><a href="https://regex101.com/r/b85yzv/4/" rel="nofollow noreferrer">You can try out the regex here</a></p>
  
  <p>The problem is, <strong>all</strong> the urls mentionned above are going to backend A, but I expected the ones containing query params to go to backend B.</p>