Possible bug in std vmod, using backtrack and tolower, 4.0.2

Per Buer perbu at varnish-software.com
Mon Nov 17 20:32:25 CET 2014


Hi,

On Mon, Nov 17, 2014 at 4:43 PM, T. Pascal <t_pascal at zennet.com> wrote:

> I'll have to assign the contents of the replacement group to a variable
> and then lower that variable and then substitute it back in?
>
> That's three or four vcl lines to accomplish something that seems like a
> workaround to a bug. :)
>

\1 won't work (how you expect) in string context, only in a regular
expression. Perl won't let you do this with \1 either. However, in Perl you
have $1 which I think will do what you want to. So I can understand the
confusion.

Per.

-- 
*Per Buer*
CTO | Varnish Software AS
Cell: +47 95839117
We Make Websites Fly!
www.varnish-software.com
[image: Register now]
<http://info.varnish-software.com/varnish-summits-autumn-2014-registration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141117/74b95d2e/attachment.html>


More information about the varnish-misc mailing list