public static <C> @NonNull RegexPreprocessor<C> of(
            final @NonNull String pattern,
            final @NonNull Caption failureCaption
    ) {
        return new RegexPreprocessor<>(pattern, failureCaption);
    }
Create a new preprocessor

@param pattern        Regular expression
@param <C>            Command sender type
@param failureCaption Caption sent when the input is invalid
@return Preprocessor instance
cloud-core/src/main/java/org/incendo/cloud/component/preprocessor/RegexPreprocessor.java