Sort of like Python's built in "cmd" module, but with regex handlers.