@Nullable
    @Override
    public String apply(RequestContext ctx, @Nullable Object input) {
        if (input == null) {
            return null;
        }

        String rawData = input.toString();
        for (Pattern pattern : patterns) {
            final Matcher m = pattern.matcher(rawData);
            rawData = m.replaceAll("");
        }
        return rawData;
    }
Creates a new instance.
@param patterns {@link Pattern}.
core/src/main/java/com/linecorp/armeria/common/logging/RegexBasedSanitizer.java