httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <>
Subject Re: PCRE and regex question...
Date Thu, 07 Jun 2001 21:01:16 GMT
At 04:17 PM 06/07/2001, Bill Stoddard wrote:
>Is there a quick way I can check a string to see if it is a regex or 
>not?  I am looking at extending SetEnvIf to accept a regex on the 
>'header' argument (value may already be a regex).

The absolute easiest would be to require that the regex start and end 
with a /.
SetEnvIf nonregexheader
SetEnvIf /regexheader/

You could also use a regex on it:
This assumes that only letters, numbers, -, and _ are allowed in 
header names.

Greg Marr
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"

View raw message