Reply To: Matching groups in rules

Splash Forums Rewrite Users Matching groups in rules Reply To: Matching groups in rules

#23770

You could simply split up the parameter into two distinct ones. Something like this:

.addRule(Join.path("/products/{name}-{id}").to("/public/content/products/productView.jsf"))
.where("name").matches("[\\w\\-]+")
.where("id").matches("B\\d+")