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

What is the difference between browser sync and page sync in QTP?

2 Answers  


What is keyword view and Expert view in QTP?

1 Answers   Crea,


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

3 Answers  


What are the different ways to invoke an application using QTP?

0 Answers  


hen do start automation testing after manual testing

1 Answers   Infosys,






Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com

1 Answers  


If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test

4 Answers   TCS,


What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


What is driver script and driver script in qtp frame work????

6 Answers   IBM,


What is OUTPUT VALUE ? PLZ Explain With Example?

5 Answers  


write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  


Categories