Apache documentation indicates that
CondPattern is a condition template, a regular expression that applies to the current instance of TestString [...] CondPattern is a perl compatible regular expression with some additions [...]
And gives examples like
RewriteCond %{REMOTE_HOST} ^host1.* [OR]
I know about Perl regular expressions, but it seems confusing to me:
Are we talking about a partial match here ? (The pattern corresponds to some substring inside the string, as in Perl $string =~ m/pattern/;
;?)
Or is it rather a complete match ? (The pattern matches the entire string , as in Java Pattern.matches(pattern, string)
?)
If the match is partial, the final .*
Seems redundant. It is complete, then it is ^
that which seems redundant.
Many of the examples I found in Apache docs and everywhere have (seeming to me) inconsistency.
Update: this is a problem with documents, now it is fixed.
source share