From: Daniel N Date: 2007-07-13T16:22:51+09:00 Subject: Regexp Question - Merb::Router ------=_Part_24700_15817559.1184311374086 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm looking through the Merb::Routing code and I've found a regexp that I 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" string. Can anyone shed some light on what the ?:: part does? I haven't found it in any of the documentation for Ruby Regexps that I've found. Cheers Daniel ------=_Part_24700_15817559.1184311374086--