title: How to escape # character in HAProxy config?
body: <p>I'm trying to modularize my front-end which is in Angular-JS, with it we are using HA-proxy as a load balancer and K8s.</p>
  
  <p>Each ACL in the HA-proxy configuration is attached to a different service in K8s and since we are using Angular with the (hash-bang enabled), in the HA-proxy configuration file we use that as a way to identify the different modules.</p>
  
  <p>Below is my configuration, in HA-proxy which is failing because I can't escape the # in the file even after following the <a href="https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#2.2" rel="nofollow noreferrer">HA Documentation</a>.</p>
  
  <pre><code>acl login-frontend path_beg /\#/login
  use_backend login-frontend if login-frontend
  
  acl elc-frontend path_beg /\#/elc
  use_backend elc-frontend if elc-frontend
  </code></pre>
  
  <p>I have tried escaping it as /%23/login and /'#'/admin but without success.</p>
  
  <p>Any idea would be greatly appreciated.</p>