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
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
How to find the difference between 2 dates in qtp?
How to customize checkpoints with parameters?
Without using gui map editor we can recognize the application in winrunner ?
What is the use of running the scripts in Hidden-mode in UFT?
What is the XML file architecture ?
How can you exit from an action?
What is a data driven test in qtp?
What is clean sweep?
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
How does you test a weblink which is changing dynamically?
Which functionalities of QTP used in banking project? pls any say answer?
How to do call a output parameter from one action to another action??/
What are the features and benefits of quick test pro (qtp 8.0)?
On what document base Descriptive programming is written if build is not yet ready ?