I wrote in the first mail I used 2 different regex. The (1) probably doesn't 
match, but the (2) ?

> (2)   reqirep (.*)\/demoj(.*)     \1/DemoJ\2

This regex match https://<hostname>, I'm Wrong ?

Roberto


-----Original Message-----
From: Cyril Bonté [mailto:[email protected]] 
Sent: martedì 28 luglio 2015 09.31
To: mlist; [email protected]
Cc: Willy Tarreau; 'Baptiste'
Subject: Re: Regex

Hi,

On 28/07/2015 08:49, mlist wrote:
> I'm confused by what I read at
> http://cbonte.github.io/haproxy-dconv/configuration-1.6.html#4.2-reqirep:
>
> <search>  is the regular expression *applied to HTTP headers and to the*
>
> *          request line*. This is an extended regular expression.
> Parenthesis
>
>            grouping is supported and no preliminary backslash is required.
>
>            Any space or known delimiter must be escaped using a backslash
>
>            ('\'). The pattern applies to a full line at a time. The "reqrep"
>
>            keyword strictly matches case while "reqirep" ignores case.

No confusion to have, the documentation is right, but the regex you 
provided in in previous mail was wrong for what you wanted to do : it 
couldn't match the Referer value because it didn't expect a value 
beginning with "https://<hostname>".

-- 
Cyril Bonté

-- 
Il messaggio e' stato analizzato alla ricerca di virus o
contenuti pericolosi da MailScanner, ed e'
risultato non infetto.


Reply via email to