Users Pricing

forum

home / developersection / forums / qtp regular expression

QTP regular expression

Anonymous User 3034 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.

I am a content writter !


1 Answers