> Apache 2.0 and later uses PCRE, and neither of those expressions mean > what you're describing. SetEnvIf itself doesn't negate the result of > the regex match with a flag. > > I don't fully understand your logic, but If you want your SetEnvIf to > only take action when the remote address doesn't begin with "10.", try > something like: > > ^((?!10\.).+) >
Thanks a lot this regex works like a charm.