forum

Home / DeveloperSection / Forums / QTP regular expression

QTP regular expression

Anonymous User269920-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.

Updated on 20-Jun-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By