Welcome! Log In Create A New Profile

Advanced

variables in if regexes

April 30, 2011 09:04PM
I have a caching system I need to bypass if the logging in user's name is found in the $request_uri. I'm trying to do something like this, but can't get the variable to interpolate into the regex. Any suggestions pretty please?

set $me "Asabouros.";
if ($uri ~ $me) { set $chk ""; }

I've always tried things like this:
if ($uri ~ "by-{$me}") { set $chk ""; }

Thanks!
-Kevin
Subject Author Posted

variables in if regexes

inspire22 April 30, 2011 09:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready