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 we QTP Scripts in xml format? is there any way to do so?

2 Answers   Apex,


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

0 Answers  


How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..

2 Answers  


How Qtp will identifies object during run time

6 Answers   CSS Corp, Yahoo,


hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


Other than using import sheet statement for importing the data from excel sheet, is there any other method that can be used?

2 Answers  


how will you load the test cases in ddt?

0 Answers  


Tell when we call the function? tell with example.

1 Answers  


In qtp, explain what is crypt object

0 Answers  


Hi, I Need code to click the webbutton inside of webtable. I need to click a particular 'Edit' webbutton inside of webtable. For Example... Having 5 Rows and 10 Columns. 'Edit' webbutton are placed in 10th Column. I need to click the 3rd row 'Edit' button with unique value. Browser("....").Page("...").Frame("...").WebButton("btn_Edit ") I Tried with below code: Set objButton = Browser("...").Page("...").Frame("...").WebTable("...").Chil dItem(3,10, Webbutton,0).Click - Not working this code :( Anyone can help me to sort out this simple issue ???

1 Answers  


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


What is throw Object?

0 Answers  


Categories