private static String resolveRegExpLikePattern(Pattern pattern) {
        String text = pattern.pattern();
        if (!text.startsWith("^")) {
            text = "^" + text;
        }
        if (!text.endsWith("$")) {
            text += "$";
        }
        return text;
    }
The {@code REGEXP_LIKE} Oracle operator acts identical to the {@code LIKE} operator. Internally,
it prepends and appends a "%" qualifier.  The include/exclude lists are meant to be explicit in
that they have an implied "^" and "$" qualifier for start/end so that the LIKE operation does
not mistakently filter "DEBEZIUM2" when using the reg-ex of "DEBEZIUM".

@param pattern the pattern to be analyzed, should not be {@code null}
@return the adjusted predicate, if necessary and doesn't already explicitly specify "^" or "$"
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/oracle-cdc/src/main/java/io/debezium/connector/oracle/logminer/LogMinerQueryBuilder.java