Re: Date Validation Regex

2001-08-10 Thread Peter Scott
and as others have pointed out, it still doesn't stop someone from entering a date of 31/02/2001. (0[1-9]|[12][0-9]|3[01])(0[1-9]|1[012])[12][09][0-9][0-9] >Thanks, >Anand > > > >>From: Peter Scott <[EMAIL PROTECTED]> >>To: "sachidanand haldankar&quo

Re: Date Validation Regex

2001-08-09 Thread Peter Scott
red we have to let people start somewhere. >If you want to test more specifically, you'll have to put in params for >each month since each month varies from 28 to 31 days (and you'll have to >account for leap year too). > > >>But, can this code to test if 31/6/2001 i

Re: Date Validation Regex

2001-08-09 Thread Teresa Raymond
are totally 30 day in June. > >Thanks. >- Original Message - >From: "Peter Scott" <[EMAIL PROTECTED]> >To: "sachidanand haldankar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Thursday, August 09, 2001 10:00 PM >Subject: Re: Date V

Re: Date Validation Regex

2001-08-09 Thread Kehai Li
sday, August 09, 2001 10:00 PM Subject: Re: Date Validation Regex > At 04:30 AM 8/10/01 +0530, sachidanand haldankar wrote: > >Hi Peter, > > > > with the regex u sent I am still able to enter invalid date > > > >31/25/2001 > > > >my perl code is,

Re: Date Validation Regex

2001-08-09 Thread Peter Scott
use of conditional statements like if () {} (perldoc perlsyn), both of which are much more fundamental and important than $&. >Thanks, >Anand > > >>From: Peter Scott <[EMAIL PROTECTED]> >>To: "sachidanand haldankar" <[EMAIL PROTECTED]> >>CC: [EMAI

Re: Date Validation Regex

2001-08-09 Thread Peter Scott
k 'Mastering Regular Expressions" from O'Reilly. Also, "perldoc perlretut" gives you a tutorial if you have Perl 5.6.1. >Thanks, >Anand > > >>From: Peter Scott <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> >>

Re: Date Validation Regex

2001-08-09 Thread Peter Scott
At 03:16 PM 8/9/01 -0700, I wrote: >At 05:43 PM 8/9/01 -0500, [EMAIL PROTECTED] wrote: >>Hi , >> >> Can anybody help me to write regex for date validation. The >> validation criterion will be as below, >> >>with date in format dd/mm/ & >> >>dd - should be less than 31 > >Really? You're s

Re: Date Validation Regex

2001-08-09 Thread Peter Scott
At 05:43 PM 8/9/01 -0500, [EMAIL PROTECTED] wrote: >Hi , > > Can anybody help me to write regex for date validation. The > validation criterion will be as below, > >with date in format dd/mm/ & > >dd - should be less than 31 Really? You're starting from 0? >mm - should be less than 12