Regular expressions.....
Actually how to use this and what is the exact syntax and
can anybody can help me out this with example.is there any
docs pls send to my mailid rvreddy82@gmail.com



Regular expressions..... Actually how to use this and what is the exact syntax and can anybody ca..

Answer / its me

It is used for dynaic changing value like in supose number is varying from 51,52,53

'Regualar Expression syntax
Set Rx= New.RegExP 'regular expression object

Rx.Global = True
'Set true if you want to check more than one occurance string else fails

Rx.Ignorecase = True
'Set true if you do not want case senstive
Rx.Pattern = "(5[1-3])"
x = Rx.Test (Str)
if x = true then
msgbox "Matach"
Else
msgbox "Not Match"
End if

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?

2 Answers   Covansys, Systel,


How to make an Action as reusable?

1 Answers  


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


who will distribute the project modules for testing in testing team ?

2 Answers  


What’s the basic concept of QTP?

1 Answers  






what are the Tools for version control?

3 Answers  


I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.

1 Answers  


Can I record on netscape browser does it require any special settings ?

2 Answers  


How to find a window is minimized or not

0 Answers  


How to call .vbs functions in QTP? plz Explain indetail

4 Answers   Wipro,


difference Between Call Run action and copy of action?

1 Answers  


Is it possible to switch between recording modes during a test creation?

0 Answers  


Categories