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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is the Bitmap checkpoint information stored?

1763


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1281


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

1937


How to carry out bit map check points in QTP

1765


Differences between quicktest professional (qtp) and winrunner?

621






What are the different types of action?

556


explain how to write vb script in qtp?when will you write own script?

1855


What is test object model in quicktest professional (qtp)?

547


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1404


How to use reporter.report event in qtp ?

556


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

1831


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1310


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1459


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1435


How can you identify the browser and its information using QTP script?

548