Reply To: HttpCondition to match request URL to regex?

Splash Forums Rewrite Users HttpCondition to match request URL to regex? Reply To: HttpCondition to match request URL to regex?

#26085

You can do something like this:

builder.addRule()
    .when(Path.matches("{something}"))
    .perform(...)
    .where("something").matches("[a-z][0-9]+");

Have a look at:

http://ocpsoft.org/rewrite/docs/configuration/parameters