import re


def compile_terms(terms):
    """
    Compile terms as regular expression,
    for better matching.
    """
    return [re.compile(re.escape(term), re.I | re.U)
            for term in terms]