import textwrap
import re


def make_regexp(pattern):
    """Make regular expression from the given patterns.

    This is just a trivial wrapper for :py:func:`re.compile` which sets
    a list of default flags.

    :param str pattern: A pattern to compile into regular expression.
    :return: Compiled regular expression
    """
    pattern = textwrap.dedent(pattern)
    pattern = re.compile(pattern, re.MULTILINE | re.VERBOSE | re.DOTALL)

    return pattern