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 |
what is Entry Criteria and Exit Criteria?
Am going to QTP testing......but i dont know coding languages like (c,c++,java,etc)and am not having interest in coding .............can i choose testing tools like qtp to learn and get a job in software......please reply me
What is an Regular expression doing in VBScript?Tell the pattern for the email verification.
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
Hi Friends,will any body tell to Me for which Auomation Tool their is great Requirement inht eMarket Eithr the QTP or WINRUNNER and for what reason and how long it is going to remain and wat the Scope for the automation Testing In the Future Please tll to Me In Details Ok .
I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can give script for this scenario?
How to make Shared object repository in qtp 9.1 and 9.2?
Hi Friends...this is surendra..recently i joined automation team ...Please send me some documents regarding VB script ...and where can i learn VB script... This is My mail id: surendra.mamilla@gmail.com... please send to my mail.... Thanx in advance surendra.
what is syncurnisation point? what is the use of this in real time environment? plz explain?
plz anybody tell me how to explain the architecture of one particular project.plz give me answer for this.....RAJESH
what is difference between analog and low level recording
PLS REAL TIMERS WRITE THE ANS FOR THIS? WHICH SCRIPT IS USED IN REAL TIME NOW A DAYS 1)SHARED REPOSITORY BASED SCRIPT 2)DESCRIPTIVE PROGRAMMING BASED SCRIPT?