write is the code for regular expression in QTP

Answer Posted / raj

'Prepare a regular expression object
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = "regex"

Pop up a message box for each match
Set myMatches = myRegExp.Execute(subjectString)
For Each myMatch in myMatches
msgbox myMatch.Value, 0, "Found Match"
Next

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the factors on which script execution time is dependent?

701


Explain different types of action in qtp?

649


Is it possible to change the values of analog recording?

686


How can you handle exceptions in qtp?

627


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

673






Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1711


What is Curd testing?

1964


Explain the check points in quicktest professional?

644


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1444


what could go wrong with test automation?

1597


Explain how Does Run time data (Parameterization) is handled in QTP?

637


how to test use the quality control .how to verify the image verification

2660


What is the syntax to call one action in another?

639


What is the descriptive programming?

1614


What is qtpro?

696