using the ``re.compile()`` method to compile a regular expression, as follows: