VBscript中如何截取特定的两个符号之间的字符串?

来源:百度知道 编辑:UC知道 时间:2024/05/23 14:22:45
例如,我有这么一句话:
the name is "car",and the function is

我想从中截取引号之间的字符串 car 如何截取?
好了 我知道答案了:
用mid函数

只知道是用正则表达式 但具体表达式 写法我弄不出来 ~给你段参考代码吧

Dim myRegExp, ResultString
Set myRegExp = New RegExp
myRegExp.Global = True
myRegExp.Pattern = "<!--\[(<script.*?</script>\])-->"
ResultString = myRegExp.Replace(SubjectString, "$1")

这个代码是将脚本两端加上注释和特定符号!