def literals(choices, prefix="", suffix=""):
    return "|".join(prefix+re.escape(c)+suffix for c in choices.split())
Create a regex from a space-separated list of literal `choices`.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/utils/jslex.py/literals