@Override
  public String redact(String string) {
    Matcher matcher = ParserRegex.getPattern().matcher(string);
    while (matcher.find()) {
      String option = matcher.group(2);
      if (!isSensitive.apply(option)) {
        continue;
      }

      String leadingBoundary = matcher.group(1);
      String separator = matcher.group(3);
      String withRedaction = leadingBoundary + option + separator + redacted;
      string = string.replace(matcher.group(), withRedaction);
    }

    return string;
  }
Simple redaction strategy using regex to parse options.
geode-core/src/main/java/org/apache/geode/internal/util/redaction/RegexRedactionStrategy.java