diff --git a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/RegexpMatchesFunction.java b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/RegexpMatchesFunction.java index 7aae1fd75f..d86641654d 100644 --- a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/RegexpMatchesFunction.java +++ b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/RegexpMatchesFunction.java @@ -32,6 +32,17 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; +/** + * RegexpMatchesFunction + * description: REGEX_MATCHES(source_string, pattern [, flags]) → set of text[]--returns the result + * of the first match of the specified regular expression from a string + * parameters: 1) source_string: the string to be matched + * 2) pattern: POSIX regular expression for matching + * 3) flags: one or more characters that control the behavior of a function, + * 'g' flag can be used when we want to match all the substrings that occur, + * 'i' flag to ignore case for matching, + * 'm' flag allows regular expressions to match across multiple lines + */ @TransformFunction(names = {"regexp_matches"}) public class RegexpMatchesFunction implements ValueParser {