@Override
    public ConstantParam apply(ConstantParam constantParam) {
        return new ConstantParam(String.format("%s(%s, %s, %s)", getName(),
                constantParam.format(), regex.format(), replacement.format()));
    }
RegexpReplaceFunction constructor

@param field it is character to be replaced
@param regex the regex expression of replacing
@param replacement the value that to be replaced
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/protocol/transformation/function/RegexpReplaceFirstFunction.java