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 to check and display a particular word from a paragraph?

1 Answers  


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


How to automate the windows dialog box which is coming in the run mode? Whenever I run my scripts,I am getting dialog box ( for ex: Pls enter zipcode" eventhough I already entered the value,the dialog box pops up).I need to click it. Pls give some idea-How to automate the dialog box which is pop up in the runtime.

2 Answers  


What are the Test design techniques you uses in ur project?

0 Answers   Accenture,


how can you write a script without using GUI in QTP?

5 Answers   Ordain Solutions,






Why use Regular Expressions?

1 Answers  


How to save your test using quicktest professional (qtp)?

0 Answers  


Create an Excel file and pass the values from Flat File? (for ex:data1.txt,data2.txt )

2 Answers   FIS,


How can you quit from Action.

2 Answers  


w is time parameter

1 Answers   Syntel,


How many types of recording modes in qtp? Which will be used when?

0 Answers  


HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.

2 Answers  


Categories