 --RegexRemovePreprocessor.enabled=True       --RegexRemovePreprocessor.patterns="['\s*\Z']" mynotebook.ipynb

    The first command line argument enables the preprocessor and the second
    sets the list of patterns to '\s*\Z' which matches an arbitrary number
    of whitespace characters followed by the end of the string.

    See https://regex101.com/ for an interactive guide to regular expressions
    (make sure to select the python flavor). See
    https://docs.python.org/library/re.html for the official regular expression
    documentation in python.
    z