How do u write a regular expression for date (dd/mm/yyyy)
field ?

Answers were Sorted based on User's Feedback



How do u write a regular expression for date (dd/mm/yyyy) field ? ..

Answer / chandradeep

(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d

0 - selects '0' Literally
[1-9]- selects the range between 1 to 9
[012] - selects either 0 or 1 or 2
[0-9] - selects the range between 0 to 9

[- / .] - selects either - or / or .
(19/20) - selects either 19 or 20 literally

Is This Answer Correct ?    5 Yes 1 No

How do u write a regular expression for date (dd/mm/yyyy) field ? ..

Answer / ghazal

([0][1-9]|[1-2][1-9]|[3][0-1])-([0][1-9]|[1][0-2])-d{2}

Is This Answer Correct ?    0 Yes 0 No

How do u write a regular expression for date (dd/mm/yyyy) field ? ..

Answer / hi

[0-3][0-9]/[0-1][0-9]/[1-2][0-9][0-9][0-9][0-9]

Is This Answer Correct ?    6 Yes 9 No

How do u write a regular expression for date (dd/mm/yyyy) field ? ..

Answer / a

(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)
[0-9]{2}

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More QTP Interview Questions

How can you delete the results file (XML)

2 Answers  


write progamming connecting QTP to database sql? this is question asked by interview? pls any answer this?

4 Answers   IBM,


What is Associate Repository in QTP 9.2 ?

0 Answers  


what is objectidentification?

2 Answers  


Hi, how can we check or avoid the memory leakage in QTP9.2?

0 Answers   Arctern,






How to handle dynamic objects in quicktest professional?

0 Answers  


I am using "QTP 9.0" in my system, need to install java add-ins to test the java based applications, please prvide information from where i can get those java add-ins for QTP 9.0

0 Answers   Infosys,


Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.

2 Answers   Banking,


What are the various versions of QTP that have been released so far? Please also mention the year of release for each version

4 Answers  


How qtp recognizes the object?

0 Answers  


Key word driven framework

0 Answers   Wipro,


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


Categories