seancorfield/fw1 — pull request #135 by GiancarloGomez (2012-07-11 08:06:20+00:00)
Title: Update to ProcessRouteMatch to allow for additional regex functionality

This update lets you write a route that can let you define your own regex to evaluate and update the back reference accordingly.

i.e. a route like "^/(blog|forum|forums)/:action/$", "/forum::action/"

would give you a target of /forum:\1/\2 meaning if you pass /blog/post/ if would translate to /forum:blog/post when what you really wanted it /forum:post/

so now in the placeholders I added to check for (\([^\)]+) and within the loop it only process the replacement for :var and for anything else just increases the back reference number value