Hi Alex, As you probably know, we already have a way to specify the type of each variable in an URI template via the org.restlet.util.Variable class and the Template.variables and Template.defaultVariable properties.
Could you describe the use case(s) that would require a full regex syntax in URI templates ? Best regards, Jerome > -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la > part de Alex Milowski > Envoyé : samedi 3 novembre 2007 03:24 > À : [email protected] > Objet : Router.attach & Patterns > > While I like the simplicity of URI patterns, I find I want the ability > to specify a > regex often. I wonder if there is someway to provide both? > > Maybe: > > Router r = ... > r.attachPattern("/some/path/.*",...); > > Then I could do; > > r.attachPattern("/some/path/(.*)",...) > > and then in the request get the group. We could bind the > groups so that > their group # is the name of the attribute: > > Object o = request.getAttributes().get("1"); > > --Alex Milowski

