def regex_from_word(word):
    return "(\s{word})|(^{word})".format(
        word=re.escape(word),
    )
Bootstraps the model object based on configured values.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/regex_from_word--crossover with--dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py/BaseResource._bootstrap