All Products
Search
Document Center

Function Compute:RegexRule

Last Updated:Jun 11, 2026

Parameter

Type

Description

Example

object

The regex rewrite configurations for custom domain names.

match

string

The matching rule.

^/api/.+?/(.*)

replacement

string

The replacement rule.

/api/v2/$1