Exception:子程序(expression)返回中止。解析表达式出错。 内部错误:The alias: '_eval' is already registered. 原始表达式: // 删除汉字 string result=Regex.Replace({expression}, @"[\u4e00-\u9fa5]", ""); // 删除空格 result=result.Replace(" ", "").Replace("\t", "").Replace("\n", "").Replace("\r", ""); // 删除无用符号 result=result.Replace(",", "").Replace(",","");(赋值)

报错信息

SubProgramFailedException: 子程序(expression)返回中止。解析表达式出错。
内部错误:The alias: '_eval' is already registered.
原始表达式:

// 删除汉字
string result=Regex.Replace({expression}, @"[\u4e00-\u9fa5]", "");

// 删除空格
result=result.Replace(" ", "").Replace("\t", "").Replace("\n", "").Replace("\r", "");

// 删除无用符号
result=result.Replace(",", "").Replace(",","");(赋值)
--StopFlag: OperationFailed
StackTrace:
   在 Quicker.Domain.Actions.X.SubPrograms.SubProgramHelper.<>c__DisplayClass18_0.RsGnOhbQ5O1()
   在 GSKZl8urTchQm8XMugX.cMw3cRuSj5k6MZmGpR3.<>c__DisplayClass7_0.kL2QCuC6rJB()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.Domain.Actions.X.SubPrograms.SubProgramHelper.<RunStandaloneSubprogram>d__18.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.Domain.Actions.ActionExecuteContext.<RunSpAsync>d__217.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.Domain.Actions.ActionExecuteContext.<RunSpAsync>d__218.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 DynamicClass.<TextBox_TextChanged>d__18.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

解决方法

暂无解决方案。

相关信息
0 查看
2025-11-05 14:22
Quicker版本
版本 反馈次数