title: haproxy replace header value
body: <p>can you please suggest haproxy heade value replace config to match for a string &amp; replace the value </p>
  
  <p>Here is sample header</p>
  
  <pre><code>X-Application-Context →MyService:arg1,arg2,arg3,arg4:number
  </code></pre>
  
  <p>here is what i have tried </p>
  
  <pre><code>http-response replace-value X-Application-Context ^(.*?(\barg1\b)[^$]*)$ \1banana\2
  </code></pre>
  
  <p>Here is what i am getting now..</p>
  
  <pre><code>X-Application-Context →MyService:arg1bananaarg1,arg2,arg3,arg4:number
  </code></pre>
  
  <p>if you notice 'arg1' is coming as a duplicate..here is what i want..</p>
  
  <pre><code> X-Application-Context →MyService:banana,arg2,arg3,arg4:number
  </code></pre>