Nginx uses the PCRE engine for evaluating regular expressions, the documentation state that /
delimiter is not used so we don’t have to escape the forward slash /
in an URI as we may do in a standard regex. An example of a valid nginx regex is location ~* /myapp/.+\.php$
BUT the following code is escaping the forward slash
location ~ ^\/(?:index|core\/ajax\/update|ocs\/v2|ocm-provider\/.+)\.php(?:$|\/)
What does \/
exactly mean in that context and why is it needed when the documentation says otherwise?