Re: Understanding haproxy's regex

2023-11-17 Thread Willy Tarreau
On Fri, Nov 17, 2023 at 10:26:32AM +0100, Christoph Kukulies wrote: > I have the following line in my config: > > backend website > http-request replace-header Destination ^([^\ :]*)\ /(.*) \1\ /opencms/\2 > server www.mydomain.org 127.0.0.1:8080 > > > Actually I'm used the write multipl

Re: Understanding haproxy's regex

2023-11-17 Thread Aleksandar Lazic
Hi Christoph. On 2023-11-17 (Fr.) 10:26, Christoph Kukulies wrote: I have the following line in my config: backend website     http-request replace-header Destination ^([^\ :]*)\ /(.*) \1\ /opencms/\2     server www.mydomain.org 127.0.0.1:8080 Actually I'm used the

Understanding haproxy's regex

2023-11-17 Thread Christoph Kukulies
I have the following line in my config: backend website http-request replace-header Destination ^([^\ :]*)\ /(.*) \1\ /opencms/\2 server www.mydomain.org 127.0.0.1:8080 Actually I'm used the write multiple patterns as \(pattern1\)\(pattern2\). So is it a different regex syntax? The oth