2009/10/9 frank.quosdorf <frank.quosd...@totuba.com>

>
> In config.ini, the following route has been set up:
>
> routes.verified.type = "Zend_Controller_Router_Route_Regex"
> routes.verified.route = "([a-z]{2})_([A-Z]{2})/verified/(.+)(/(\d+))?"
>


>
> Apparently, parameters 3 and 4 (even including the slash in between) are
> mapped into one request parameter (routeCaption) which is not the desired
> result
>

At first glance, this looks like a problem with your regular expression.
(.+) will greedily match any character, so that will always match the whole
of the rest of the URL. If you change this to (.+?), that should make it
non-greedy, which will make it stop at the next /.

-- 
Tim Fountain
http://tfountain.co.uk/

Reply via email to