title: Gorilla Mux Regex
body: <p>I'm using the Mux package from the <a href="http://www.gorillatoolkit.org/pkg/mux" rel="nofollow">Golang Gorilla Toolkit</a> for my routes.</p>
  
  <p>Consider the following routes: </p>
  
  <pre><code>m.HandleFunc("/admin/install", installHandler).Methods("GET")
  m.HandleFunc("/admin/^((?!install).)*$", adminHandler).Methods("GET")
  m.HandleFunc("/admin", adminHandler).Methods("GET")
  </code></pre>
  
  <p>The problem is with the regex of the middle route - it is not interpreted, so the route will not work!</p>
  
  <pre><code>m.HandleFunc("/admin/{^((?!install).)*$}", adminHandler).Methods("GET")
  </code></pre>
  
  <p>With the {} curly brackets doesn't work either. It is just ignored, and treated as /admin/</p>
  
  <p>Neither does:</p>
  
  <pre><code>m.HandleFunc("/admin/{_dummy:^((?!install).)*$}", adminHandler).Methods("GET")
  </code></pre>
  
  <p>In short, what I'm trying to achieve here is to first match the /admin/install route, and that exact route I then want to exclude from the route below, using the regex, but it doesn't work.</p>
  
  <p>Is there some way to use regex with the gorilla mux package?</p>