how to write regular expression for Date field?

Answer Posted / sow

[0-3][0-1]/[0-1][0-2]/200[0-9]

This would take only 2001 to 2009. It will not accept 1999.

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

567


How would you directly trigger javascript in a test?

1467


In qtp, explain what is keyword driven automation framework?

611


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1440


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1805






Hi ,Can any one pleas explain how to test splash objects using QTP?

1901


What is the difference between per-action and shared?

586


when a test case is written how u test using qtp

1647


How to define array in qtp?

570


What are the challenges u faced in testing with crm domain? How u overcome with?

1482


How qtp identifies objects?

562


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3262


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1389


Define Environment Variable in UFT and its uses?

601


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1425