title: PCRE ^~ symbol in nginx
body: <p>I have this nginx location block ( from <a href="https://munin.readthedocs.io/en/2.0.8/example/webserver/nginx.html" rel="nofollow noreferrer">https://munin.readthedocs.io/en/2.0.8/example/webserver/nginx.html</a> )</p>
  
  <pre><code>location ^~ /munin-cgi/munin-cgi-graph/ {
      fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
      fastcgi_param PATH_INFO $fastcgi_path_info;
      fastcgi_pass unix:/var/run/munin/fastcgi-graph.sock;
      include fastcgi_params;
  }
  </code></pre>
  
  <p>It seems like nginx is using PCRE. <strong>^</strong> means "assert start of string (or line, in multiline mode)" from <a href="http://www.pcre.org/original/doc/html/pcrepattern.html" rel="nofollow noreferrer">http://www.pcre.org/original/doc/html/pcrepattern.html</a> but I can't find what <strong>~</strong> means.</p>
  
  <p>Thanks</p>