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

Answer Posted / amarendra kothuru

The above regular expression(Ans:1) will fail as it allows
day between 31 to 40 as well.

The following regular expression takes care of all cases
and validate the format (dd/mm/yyyy)

(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/\d{4}

Is This Answer Correct ?    22 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can U Explain about QTP tool from older version to latest version also its differences?

1531


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

599


What is the registration process and examination fees?

562


What are the advantages of parameterization ?

600


How to use the object spy in quicktest professional 8.0 version?

550






Which functionalities of QTP used in banking project? pls any say answer?

1453


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1459


Explain QTP using different development techniques ?

546


How you are developing the script? Using record and play back or manual?

637


Explain the features and benefits of quick test pro(qtp)?

525


How to create runtime property for an object?

1456


What is the use of sendkeys and what are send keys

1963


what is the hierarchy to use properties in descriptive programming

1507


What is smart identification in QTP?

641


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

597