Reply To: Matching groups in rules

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

#23790

Will Durman
Participant

Excellent suggestion! This is the rule I ended up using, with slightly different regex:


.addRule(
   Join.path("/products/{productSlug}-{productGroupName}").to("/public/content/jewelry/productView.jsf"))
   .perform(Log.message(Logger.Level.INFO, "Joining on /products/{productSlug} aaand {productGroupName}"))
   .where("productSlug").matches("[\\w\\-]+")
   .where("productGroupName").matches(".*$")