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
SubjectAuthorPosted

variables in if regexes

inspire22April 30, 2011 09:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 3 on May 21, 2013
Record Number of Guests: 104 on May 21, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready