I’m looking through the Merb::Routing code and I’ve found a regexp that
can’t figure out how it works.
Merb::Router::SECTION_REGEXP #=> /(?::([a-z*_]+))/
It takes a route definition string, like “/products/:model/:id” and
extracts the “model” string on the first pass, and later the “id”
Can anyone shed some light on what the
part does? I haven’t found it in any of the documentation for Ruby
that I’ve found.