def register(self, regexp, callback):
        self._hooks[regexp] = (re.compile(regexp), callback)

    ###########################################################
Decorators: keep_messages should avoid the removal of specific flash-scoped values.
dataset/ETHPy150Open dsiroky/snakemq/snakemq/messaging.py/ReceiveHook.register--crossover with--dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/decorators.py/KeepMessagesDecoratorTestCase.test_decorator_with_args