Users Pricing

forum

Home Forums QTP regular expression – MindStick

QTP regular expression

Anonymous User 3104 20 Jun 2013
Hi Expert,
I have problem with regular expression in QTP, can't understand why this pattern doesn't work:
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

Method Count return 0 value, could someone help, pls.

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md