It is possible to apply case function on substitution part of RegEx like that ?

Request Line:    GET /JSicCaravaggio/jsic.css HTTP/1.1

repireq (\/JSic)([A-Za-z])([A-Za-z]*)\/                  \/JSic\2\3\/

Following regex should match "/JSicCaravaggio/" case insensitive in 3 groups:
/1 = JSic
/2 = C
/3 = aravaggio

Substitution:
for /1 put JSic (so we impose fixed case JSic)
No transformation for /2 and /3

Can I do manipulation on /2 and /3 such upper lower, etc ?
Example:
                I want /2 always uppercase so if a user put JSiccRAVAGGIO 
haproxy replace with: JSicCaravaggio


PS: I teste above regex on https://regex101.com/#pcre is this compliance with 
pcre haproxy uses ? there is eventually a mechanism to test debug so I'm sure 
haproxy regex works as I need ?


Roberto



Reply via email to