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

Is it possible to change the property value at runtime? How it is possible?

0 Answers  


What is clean sweep?

0 Answers  


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

1 Answers   Mphasis,


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

0 Answers  


what is the general issues faced while using automation tool Qtp9.0

1 Answers   TCS,






What are associated files in QTP?

2 Answers  


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

0 Answers   Value Labs,


How does quicktest professional (qtp) identifies the object in the application?

0 Answers  


How is a Step generator used in UFT?

0 Answers  


Hi, this is venkatesh. Q: I have 10 files in a folder(say D:\). Out of which there are some .txt, .xls, .doc. I want to know how to get the count of each file using qtp? If U have any ans, plz write script for that...

4 Answers   EDS,


What is the quicktest professional (qtp) testing process?

0 Answers  


While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


Categories