syntax for back references

Nils Goroll slink at schokola.de
Thu Nov 4 08:30:28 CET 2010


BTW,

a couple of weeks ago, we were talking about syntax for the match back
references on varnish-hacking.

Actually something like the $n back-reference like in ...

					  vv edited
>> if (req.http.User-Agent ~ "(ua1|ua2|ua3)" {
>>         error 403 "Forbidden UA $1";
>> }

... should be quite easy to do in VCC IIUC - we'd only need to parse literal
strings and take them apart into "literal", VRT_match(n), "literal".

phk?

Nils




More information about the varnish-dev mailing list