Interface RewriteConfig.Builder

  • Method Details

    • regex

      The regular expression to match in the input string. The maximum length of the string is 1,024 characters.

      Parameters:
      regex - The regular expression to match in the input string. The maximum length of the string is 1,024 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replace

      RewriteConfig.Builder replace(String replace)

      The replacement string to use when rewriting the matched input. The maximum length of the string is 1,024 characters. You can specify capture groups in the regular expression (for example, $1 and $2).

      Parameters:
      replace - The replacement string to use when rewriting the matched input. The maximum length of the string is 1,024 characters. You can specify capture groups in the regular expression (for example, $1 and $2).
      Returns:
      Returns a reference to this object so that method calls can be chained together.