diff --git a/6502.Net/ExpressionEvaluator.cs b/6502.Net/ExpressionEvaluator.cs index 5abdbf8..7c6a3b2 100644 --- a/6502.Net/ExpressionEvaluator.cs +++ b/6502.Net/ExpressionEvaluator.cs @@ -532,7 +532,7 @@ private string ReplaceSymbols(string expression) string sym_pattern = l.Key; // strip white-spaces between operators and symbols first - expression = Regex.Replace(expression, @"\s*(" + l.Key + @")\s*", m => + expression = Regex.Replace(expression, @"\s*(" + sym_pattern + @")\s*", m => { return m.Groups[1].Value; });