Can I really assume location match start with /?

From the doc, it said…

==========

location / {

matches any query, since all queries begin with /, but regular

==========

But I am wondering, if it always start with /, why not use ^ instead?

e.g.

location ^/ {
location ^/documents/ {

On Fri, Nov 9, 2012 at 11:00 AM, Ryan C. [email protected]
wrote:

That’d require regexp.