how to write regular expression for Date field?

Answer Posted / raghu

To apply Regular expression for Date we have to split months
1) [0][1-9] because it accepts 01,02,...09 as months

2) [1][1-2] and this is for 10th,11th, 12th months

Now The Regular expression for whole date format is as follows

Example MM/DD/YY

[0][1-9][/][0-9][0-9][/][0-9][0-9] for 1 to 9 months
[1][1-2][/][0-9][0-9][/][0-9][0-9] for 10 to 12 months

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why text area checkpoints cannot used for web applications

1883


How software automation specialist enter steps in the Expert View?

1676


desribe a situation where u faced a stressful situation and how did u cope with it

1411


what is the structure for the data driven framework

1484


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1380






hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

1516


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1535


what is run action?

1435


Without using gui map editor we can recognize the application in winrunner ?

607


How the smart identification is used in real time?Please explain with an example

1549


How to call a test from another test?

682


What are the advantages of parameterization ?

598


Tell me about qtp?

540


What is the architecture of your project? Can any one answer for this question plz........

1412


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

1625