What is an Regular expression doing in VBScript?Tell the
pattern for the email verification.



What is an Regular expression doing in VBScript?Tell the pattern for the email verification...

Answer / reg

Regular expressions enable QuickTest to identify objects
and text strings with varying values.
MyEmail="My_Name01@gmail.com"
Set regEx=new RegExp
regEx.Pattern="^[a-zA-Z][\w\.]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-
]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
isValid=regEx.Test(MyEmail)

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More QTP Interview Questions

How do Parameterization and Data-Driving relate to each other in QTP?

0 Answers  


How to handle the exceptions using recovery scenario manager in QTP?

0 Answers   Crea, CTS,


How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file is like: <Environment> <Variable> <Name>Name</Name> <Value>Uday Kumar</Value> </Variable> <Variable> <Name>Designation</Name> <Value>Senior Software Engineer</Value> </Variable> </Environment> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?

3 Answers   QualiTest,


what is object and child object.. explain ..if possible give some example for better understanding ..

0 Answers   HCL,


how to run the script If QTP tool not identify object in web page

2 Answers  






Could you please explain me about QTP framework.

2 Answers   Oracle,


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

0 Answers   Virtusa,


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

0 Answers  


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


what is the Descriptive Progarmming? how it is help to testers in QTP?

4 Answers   TCS,


Step 3&4 are repeated until an the object in recognised uniquely.

0 Answers  


what r the 3 basic factor on which we determine to perform automation

6 Answers   AppLabs,


Categories