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  


What is InStr()

6 Answers   Kanbay,


How will you compare keyword and expert view?

0 Answers  


How to maintain the old scripts in QTP?

2 Answers   Olive Tech, Wipro,


How can we translate the steps between the Keyword and Expert Views?

1 Answers  






Am going to QTP testing......but i dont know coding languages like (c,c++,java,etc)and am not having interest in coding .............can i choose testing tools like qtp to learn and get a job in software......please reply me

1 Answers  


How to Practice QTP Scripts?

1 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

2 Answers  


how can i pass parameters into function?

4 Answers   Livetek,


When I used random numbers(1 to 9) with regular expression and run the test, it runs only 5 iterations with passed result instead of running all 1 to 9. Please tell me what can be the reason

0 Answers  


Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.

1 Answers  


How to make arguments optional in a function?

1 Answers   Crea,


Categories