def search_to_regexps(terms):
    return [re.compile(re.escape(term)) for term in terms]
Convert search query terms into regular expressions.
dataset/ETHPy150Open edgewall/trac/trac/search/api.py/search_to_regexps