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

i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

0 Answers  


In an output value text checkpoint, where does the output value stored by default ?

4 Answers   Ordain Solutions,


How do you invoke any application and write a script to invoke QTP using VB Script.

2 Answers   HealthAsyst,


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

0 Answers  


What are output values and why they are used ?

0 Answers  






What is the difference between Normal mode and Fast mode ?

1 Answers   AZTEC,


what is description object?

0 Answers  


hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?

4 Answers  


difference between GetRoProperry and GetToProperty.and where we've to use exactly those properties

5 Answers   Wipro,


How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?

2 Answers  


What is test object?

0 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

4 Answers  


Categories