title: Haproxy Redirect Map file can use regex?
body: <p>I am using HA-Proxy version 1.5.11 2015/01/31</p>
  
  <p>In my config i have a line that looks like:</p>
  
  <pre><code>http-request redirect location %[capture.req.uri,map(/etc/haproxy/redirects.map)] code 301 if { capture.req.uri,map(/etc/haproxy/redirects.map) -m found } { hdr$ { hdr(host) -i mysite.com }
  </code></pre>
  
  <p>the redirects.map file looks something like:</p>
  
  <pre><code>/oldurl/ /newurl/
  </code></pre>
  
  <p>Is there anyway to do regular expressions in this map file? something like:</p>
  
  <pre><code>/(en|sp)/oldurl/ /1/newurl/
  </code></pre>
  
  <p>The redirect map does work on a 1to1 bases and does work now. Just trying to add regular expressions to the matches to cut down on the size of the map file.</p>