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 |
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
Whether qtp 9.0 supports Test director8.0
Write VB script to test given number is Prime Number
How we will execute(run) the scripts in qtp 8.2?
What is fragmentation and paging?
In qtp, how you can exit for loop?
what is clean sweep?
What are the common defects found in your project? (in qtp interview)
After running scripts how you report results ,there is any specific report form
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP
why don’t use real time they r not using check points
what is objectidentification?