On Fri, 16 Jan 2015 15:55:06 +0000 William Lewis <[email protected]> wrote:
> 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 Hi, Actually, the map_reg cannot expand the match groups. Thierry > 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

