]> err.no Git - varnish/commit
Add a new vcl function regsuball()
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 27 May 2008 07:10:22 +0000 (07:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 27 May 2008 07:10:22 +0000 (07:10 +0000)
commit424835697c21beca22d757e59ea775c8048e9b4c
treeb80386cccdd3ae862eb1b0b1dad9866e670b743f
parentbae89f2509a2ab5d6703b544c7ff643ea25077e5
Add a new vcl function regsuball()

It works just like regsub(), but replaces all occurrences of the regexp.

regsub("1foofoofoo2", "foo", "bar") -> "1barfoofoo2"

regsuball("1foofoofoo2", "foo", "bar") -> "1barbarbar2"

Fixes ticket 238

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2640 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_vrt_re.c
varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_string.c
varnish-cache/man/vcl.7