Welcome! Log In Create A New Profile

Advanced

Hide raw regular expression from $_SERVER['server_name']

Anonymous User
August 03, 2013 06:07PM
I am using a regular expression in a server_name:

server_name ~^(?!web2\.)(?<account>.+)\.mydomain\.com$;

In PHP, or any language for that matter, if I:

echo $_SERVER['server_name'];
//~^(?!web2\.)(?.+)\.mydomain\.com$

I get the raw regular expression back. Is it possible to mask this, and instead return the actual regular expression matchedaccount? I.E. foo.mydomain.com.
Subject Author Posted

Hide raw regular expression from $_SERVER['server_name']

Anonymous User August 03, 2013 06:07PM

Re: Hide raw regular expression from $_SERVER['server_name']

Jonathan Matthews August 03, 2013 06:26PM

Re: Hide raw regular expression from $_SERVER['server_name']

Anonymous User August 03, 2013 08:06PM

Re: Hide raw regular expression from $_SERVER['server_name']

Jonathan Matthews August 04, 2013 05:16AM

Re: Hide raw regular expression from $_SERVER['server_name']

Igor Sysoev August 04, 2013 05:34AM

Re: Hide raw regular expression from $_SERVER['server_name']

Anonymous User August 04, 2013 05:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready