import re


def regex(expression):
    """
    Return a compiled regular expression.

    :param expression: Expression to compile.
    :type expression: :class:`str`
    :returns: Compiled regular expression.
    :rtype: :class:`re.SRE_Pattern`
    """
    return re.compile(r"%s" % expression)