zenazn/goji — pull request #98 by colorsocean (2014-12-17 10:33:36+00:00)
Title: Added support for wildcard/subrouter when using regexp pattern

With this modification you can use regexp in parent routes. (Notice lack of $ at end of regexp)

```go
sub := web.New()
sub.Use(middleware.SubRouter)
sub.Get("/get", func(c web.C, w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "Info for IP address: %s", c.URLParams["ip"])
})
mux.Handle(regexp.MustCompile(`^/ip/(?P(?:\d{1,3}\.){3}\d{1,3})/info`), sub)
```