private static boolean checkIntValueNorms(WebFieldDef fieldDef, String paramValue,
            boolean hasMinVal, int minValue,
            boolean hasMaxVal, int maxValue,
            StringBuilder sBuffer, ProcessResult result) {
        try {
            int paramIntVal = Integer.parseInt(paramValue);
            if (hasMinVal && paramIntVal < minValue) {
                result.setFailResult(sBuffer.append("Parameter ").append(fieldDef.name)
                        .append(" value must >= ").append(minValue).toString());
                sBuffer.delete(0, sBuffer.length());
                return false;
            }
            if (hasMaxVal && paramIntVal > maxValue) {
                result.setFailResult(sBuffer.append("Parameter ").append(fieldDef.name)
                        .append(" value must <= ").append(maxValue).toString());
                sBuffer.delete(0, sBuffer.length());
                return false;
            }
            result.setSuccResult(paramIntVal);
        } catch (Throwable e) {
            result.setFailResult(sBuffer.append("Parameter ").append(fieldDef.name)
                    .append(" parse error: ").append(e.getMessage()).toString());
            sBuffer.delete(0, sBuffer.length());
            return false;
        }
        return true;
    }
Parse the parameter string value by regex define

@param fieldDef     the parameter field definition
@param paramValue   the parameter value
@param hasMinVal    whether there is a minimum
@param minValue      the parameter min value
@param hasMaxVal    whether there is a maximum
@param maxValue      the parameter max value
@param sBuffer      string buffer
@param result   process result
@return check result for string value of parameter
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java