> > > > 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.
Thanks john, no it is good, i have to check whether the rest of the date
is right anyway, but this will nicely check if it is actually in the right
format, no letters etc.
Jason
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug