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
What are the factors on which script execution time is dependent?
Explain different types of action in qtp?
Is it possible to change the values of analog recording?
How can you handle exceptions in qtp?
What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
What is Curd testing?
Explain the check points in quicktest professional?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
what could go wrong with test automation?
Explain how Does Run time data (Parameterization) is handled in QTP?
how to test use the quality control .how to verify the image verification
What is the syntax to call one action in another?
What is the descriptive programming?
What is qtpro?