【发布时间】:2013-06-10 11:00:22
【问题描述】:
我在 QTP 中遇到了正则表达式的问题,不明白为什么这个模式不起作用:
Dim objRegExp
Set objRegExp = New RegExp
objRegExp.Pattern = Replace(Replace(Replace("Millennium [AUT]", "\", "\\"), "(", "\("), ")", "\)")
objRegExp.IgnoreCase = True
If objRegExp.Execute("Millennium [AUT]").Count < 1 Then
Set objRegExp = Nothing
End If
方法计数返回 0 值,请有人帮忙。
【问题讨论】: