diff --git a/evennia/utils/nested_inlinefuncs.py b/evennia/utils/nested_inlinefuncs.py index 0555fb8656..aa59f6497c 100644 --- a/evennia/utils/nested_inlinefuncs.py +++ b/evennia/utils/nested_inlinefuncs.py @@ -124,16 +124,16 @@ except AttributeError: # regex definitions -_RE_STARTTOKEN = re.compile(r"(?.*?)(?.*?)(?(?(?(?\\'|\\"|\\\)|\\$\w+\{)| # escaped tokens should appear in text - (?P[\w\s.-\/#!%\^&\*;:=\-_`~()\[\]]+) # everything else should also be included - """, +_RE_TOKEN = re.compile(r""" + (?.*?)(?.*?)(?(?(?(?\\'|\\"|\\\)|\\$\w+\{)| # escaped tokens should re-appear in text + (?P[\w\s.-\/#!%\^&\*;:=\-_`~()\[\]]+) # everything else should also be included""", re.UNICODE + re.IGNORECASE + re.VERBOSE + re.DOTALL)