Class RewriteRegexRule

  • All Implemented Interfaces:
    Rule.ApplyURI

    public class RewriteRegexRule
    extends RegexRule
    implements Rule.ApplyURI
    Rewrite the URI by matching with a regular expression. The replacement string may use $n" to replace the nth capture group. If the replacement string contains ? character, then it is split into a path and query string component. The replacement query string may also contain $Q, which is replaced with the original query string. The returned target contains only the path.