write is the code for regular expression in QTP

Answers were Sorted based on User's Feedback



write is the code for regular expression in QTP..

Answer / 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

write is the code for regular expression in QTP..

Answer / pravat

RegExp:=name.*

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

Tell about descriptive programing in qtp8.2?

4 Answers   GE,


cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs

7 Answers   Symphony,


what is a test strategy & what is the difference between test strategy & test plan?

5 Answers  


what is the object properties settings in the QTP

5 Answers   DigiTech,


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

0 Answers   Wipro,


How to find operating system information using the qtp script?

0 Answers  


Wt is the difference between Business Component and scripted component?

1 Answers   BSL,


what are the qtp tester responsibilities?

3 Answers  


Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?

3 Answers  


What are the major/ important methods, functions in QTP we use realtime testing

0 Answers  


Can u call winRunner scripts from QTP?

4 Answers  


what is aregular expression?

4 Answers   UHG,


Categories