All Products
Search
Document Center

Function Compute:RegexRule

Last Updated:Dec 19, 2025
ParameterTypeDescriptionExample
object

The regex rewrite configurations for custom domain names.

matchstring

The matching rule.

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

The replacement rule.

/api/v2/$1