write the regular expression for date format of mm/dd/yy?
Answers were Sorted based on User's Feedback
Answer / rajesh
[1-9]|1[0-2]/[1-9]|[1-2][0-9]|3[0-1]/19[0-9][0-9]|2[0-9][0-9][0-9]
More food for thought valid from 1900 to 2999.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / rajesh
Pavani your point is correct
Here is the format for the input.
MM will be 1 to 12 "[1-9]|1[0-2]"
DD will be 1 to 31 "[1-9]|[1-2][0-9]|3[0-1]"
YY will be "[0-9][0-9]"
Hence MM/DD/YYYY will be
"[1-9]|1[0-2]/[1-9]|[1-2][0-9]|3[0-1]/[0-9][0-9]"
| Is This Answer Correct ? | 10 Yes | 5 No |
Answer / hetal
Regular experession can also be written in qtp as follow:
(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / falak
^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / lak
^([1-9]|0[1-9]|1[0-2])[- / .]([1-9]|0[1-9]|1[0-9]|2[0-9]|3
[0-1])[- / .](1[9][0-9][0-9]|2[0][0-9][0-9])$
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sai shankar
(0[1-9]|1[0-2])[./-](0[1-9]|1[0-9]|2[0-9]|[a-z])[./-]([0-9]{4})
| Is This Answer Correct ? | 0 Yes | 0 No |
Thanks ranu & pratap.
But given regular expressions are accepting the invalid
date like 19/39/2000
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / ranu rathore
[0-1][0-2]/[0-3][0-9]/[0-2][0-9][0-9][0-9]
| Is This Answer Correct ? | 3 Yes | 6 No |
What does "Dynamic change on web pages" means.As per my knowledge, this comes in "Complete" level of Active screen capture levels, where it says, "Also dynamic changes on web changes are saved.so i want to know what type of dynamic changes are made and is this dyanmic changes efftes only on web application or any other?
How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)
What is business process testing(bpt) in qtp?
Hi Friends, Can you please answer these questions of QTP Certification? 1.) What are bitmap checkpoints sensitive to? A. Image size and object type B. Object type and image type C. Screen resolution and object type D. Screen resolution and image size 2.)What are the phases in the QuickTest workflow? A. Plan, Record, Enhance, Run B. Prepare, Record, Verify, Run C. Plan, Create, Verify & Enhance D. Prepare, Create, Verify & Enhance, Integrate 3.) What are the two most commonly used ADO objects? A. Fields B. Execute C. Connection, RecordSet D. Open, ConnectionString 4.)What options are available to filter objects in the Target Object Repository pane when merging object repositories? A. Show all objects or Show only objects with conflicting object types B. Show all objects or Show only objects with conflicting descriptions C. Show only objects with conflicting logical names or Show only objects with conflicting object types D. Show only objects with conflicting logical names or Show only objects with conflicting descriptions 5.)Which of the following is an example of a missing resource? A. An object B. Run Results C. A Regular Action D. An External Action 6.)What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value 7.)In VB Script functions, which one is false among the following a. Variables must be declared before use b. Variables may not be declared before use c. Variables may be declared without data types None
What is the main differece between QTP 9.0 and 9.2
How does qtp identify objects in the application?
Waht is Test Report , What it consists?
In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.)
What type of framework you are using in your company and explain it?
how qtp handles customised object
what you mean by artifact,milestone...
What is the diff between image and bitmap check point?