On Wed, Jan 10, 2001 at 02:29:04PM +1100, Jason Rennie wrote:
> > > I need to parse a date of the form DD/MM/YYYY
> > ^[0-3][0-9]\/[01][0-9]\/[0-9][0-9][0-9][0-9]$
> 
> Thanks john,
> 
> This will discover if the date is not of the form DD/MM/YYYY right ?

no the above will match if the date is of that form so just negate the
return value or something. It's not actually the best reject eg it will
match 39/19/2000. If you want something a bit better do a search on
google and you should find something.

> 
> Or am i reading it wrong ?
> 
> Jason

-- 
John Ferlito
Senior Engineer - Bulletproof Networks
ph: +61 (0) 410 519 382
http://www.bulletproof.net.au/


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to