diff --git a/mathics/core/parser/tokeniser.py b/mathics/core/parser/tokeniser.py index 37d652a650..5d05ae3414 100644 --- a/mathics/core/parser/tokeniser.py +++ b/mathics/core/parser/tokeniser.py @@ -122,7 +122,7 @@ ('RuleDelayed', r' (\:\>)|\uF51F '), ('UndirectedEdge', r' (\<\-\>)|\u29DF '), ('ReplaceRepeated', r' \/\/\. '), - ('ReplaceAll', r' \/\. '), + ('ReplaceAll', r' (\/\.)(?=[^0-9]) '), ('Postfix', r' \/\/ '),