title: haproxy ACLs regex and logical or
body: <p>If I have URL of the form <code>/q/a/1234</code> or <code>/q/b/456</code> or <code>/q/c/987</code> and <code>/q/x/abc</code> or <code>/q/y/3455</code>.</p>
  
  <p>I want to route any URLs of the form <code>/q/[a|b|c]/.*</code> i.e anything which is meant to the queues a or b or c to one backend, and anything which is meant for <code>/q/[x|y]/.*</code>  to a different backend, how would I achieve this?</p>
  
  <p>I attempted:</p>
  
  <pre><code>acl use_server_1 path_reg /a|b|c/
  use backend server1 if user_server_1
  
  acl use_server_2 path_reg /x|y/
  use backend server2 if user_server_2
  </code></pre>
  
  <p>This does not match routes correctly.... Any ideas?</p>