Matching groups in rules

Splash Forums Rewrite Users Matching groups in rules

This topic contains 3 replies, has 3 voices, and was last updated by  Lincoln Baxter III 8 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #23769

    Will Durman

    I have this rule declared:


    However, I would like to, by regular expression, only include a portion of the {id} parameter. I already have the regular expression pattern figured it out.Is it possible to manipulate the parameter in this way?

    For example, if the incoming URL is:


    Then I would like the “joined” URLto be:



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


    Will Durman

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

       .perform(Log.message(Logger.Level.INFO, "Joining on /products/{productSlug} aaand {productGroupName}"))

    Very nice! Glad this got you up and running! Nice addition of “Log” 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.