Regex 在命令提示符下通过wscript.exe运行vbscript中功能不正常的inputbox方法

Regex 在命令提示符下通过wscript.exe运行vbscript中功能不正常的inputbox方法,regex,vbscript,wsh,Regex,Vbscript,Wsh,我试图通过从以下链接运行CurrencyEx.vbs来学习VBScript中的正则表达式语法: 我修复了第10行的错误,如查询所示: 现在,这个脚本没有达到预期目的,因为我在第6行没有看到inputbox()方法返回的用于输入自定义文本的对话框: inputstr = inputbox("I will help you convert USA and CAN currency. Please enter the amount to convert:") 脚本以vbsedit.exe中的退出代

我试图通过从以下链接运行CurrencyEx.vbs来学习VBScript中的正则表达式语法:

我修复了第10行的错误,如查询所示:

现在,这个脚本没有达到预期目的,因为我在第6行没有看到inputbox()方法返回的用于输入自定义文本的对话框:

inputstr = inputbox("I will help you convert USA and CAN currency. Please enter the amount to convert:")

脚本以vbsedit.exe中的退出代码0结束。我无法找出我的错误,因此欢迎任何建议。

鉴于脚本以

Sub CurrencyEx
Dim inputstr, re, amt
Set re = new regexp  'Create the RegExp object

'Ask the user for the appropriate information
inputstr = inputbox("I will help you convert USA and CAN currency. Please enter the amount to convert:")
...
您“在第6行没有看到inputbox()方法返回的对话框”,我认为您没有将Sub的调用添加到程序中。所以pre/ap挂起一行

CurrencyEx

到脚本。

发布围绕此脚本的其余代码。