How do u write a regular expression for date (dd/mm/yyyy)
field?
Answers were Sorted based on User's Feedback
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 |
Answer / kirti
(0[1-9]|[12][0-9]|3[01])[//](0[1-9]|1[012])[//]([0-9]{4})
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / krishna
This is the corect answer:
[0][1-9]|[1-2][0-9]|[3][0-1][//] ([0][1-9]|[1][0-2])
[0-9]{4}
Is This Answer Correct ? | 6 Yes | 4 No |
Answer / satish yadav
To write regular expression for dd/mm/yyyy format
[0-3][0-9][/](([0][0-9])|([1][0-2]))[/][0-9]{4}
Is This Answer Correct ? | 20 Yes | 20 No |
Answer / naresh
([0-2][1-9]|[3][0-1])|([0][1-9]|[1][1-2])|[0-9][0-9][0-9][0-9]
Tjis is the perfedct regular expression for the date.. guys...
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / megh
Regex Birthdate = new Regex(@"((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))[-/]{1}((0[0-9]{1})|(1[0-2]{1}))[-/]{1}[0-9]{4}");
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / laxman
(0[1-9]|1[0-9])|2([0-9]|3[0-1])/(0[1-9]|1[0-2])/([0-9]|[0-9]|[0-9]|[0-9])
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gopal
Experts,
I want expression for DD.MM.YYYY !!
Please help !!
Thanks a lot !!
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / megh
Regex Birthdate = new Regex(@"((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))[-/]{1}((0[0-9]{1})|(1[0-2]{1}))[-/]{1}[0-9]{4}");
Is This Answer Correct ? | 0 Yes | 1 No |
Write a command for setvalue function in a webedit
What are the recording modes in qtp?
I want to learn Advanced QTP, suggest me the best faculty in Hyderabad
When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..??
4 Answers DST Global Solutions,
Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.
We have opened three browser such as Facebook,Gmail,Amazon,I want to generate the script of Login of Amazon application, but while adding the object such as edit box(user id,password) in OR is not added.Could you please resolve my issue
How to retrieve data from application objects?
After creating testcases, how do you start testing in QTP? what methodology will follow?
7 Answers Actran, American Well,
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
HOW TO CONVERT MANUAL TEST CASES IN TO AUTOMATION TEST SCRIPTS EXPLAIN THE PROCESS?
In qtp, explain what is crypt object
Out of 3 recording modes. 1.Standard 2.Analog 3.Low-level, which one is commonly used. As per my knowledge, Analog is used for Graphs , barcoding or DIgital signatures.