Hi,

Was it considered and if not how feasible would it be to expand match groups 
defined in the regex pattern in the output when using map_reg

i.e. 

your map file contains lines like this

(CrMo)/(\d+)\.(\d+)\.(\d+)\.(\d+) Chrome\ Mobile,\2,\3,\4,\5

and you use in haproxy config

http-request add-header UA %[hdr(User-Agent),map_reg(maps/uas,UNKNOWN)]

I’m looking to build a haproxy compatible map file from 
https://raw.githubusercontent.com/ua-parser/uap-core/master/regexes.yaml 
<https://raw.githubusercontent.com/ua-parser/uap-core/master/regexes.yaml>
https://raw.githubusercontent.com/ua-parser/uap-core/master/docs/specification.md
 
<https://raw.githubusercontent.com/ua-parser/uap-core/master/docs/specification.md>


Cheers

Will

Reply via email to