Tried searching in PCRE Documentation. Couldn’t find anything.
What does & signify in PCRE?
Saw a usage of it in an expression like this:
(^|&)p=(about_us|contact)(&|$) [NC]
in this question: RewriteCond %{REQUEST_URI} : how to stop, if REQUEST_URI contains ?p=about or ?p=contact
I do know the meanings of ^, $ & |. as well as grouping.
It doesn’t have any special meaning.
I imagine that the expression is simply trying to match either the start or end of the query string, or otherwise a literal
&character on either end of the query string. Remember that&is typically used to separate query string parameters.