I think the one lesson we should have learned from the y2k hoola is that
date's in general are a pain to handle and are much more complicated than
they look. The best way is to find a date class and have it parse the date
for you because:
1. The time spent grepping through the documentation and reading it is less
than time spent coding it.
2. The code you grab out of a library has most likely been used at least
thousands of times and thus is thousands time less likely to contain
bugs/flaws.
3. It will make your code more readable to the person who has to look at it
after you.
Cheers,
Dave.
--
David Zverina
Alt Key Pty. Ltd.
http://www.altkey.com
PO Box 3121, Parramatta, 2124, Australia
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jason Rennie
> Sent: Wednesday, 10 January 2001 14:16
> To: [EMAIL PROTECTED]
> Subject: [SLUG] Regex Question
>
>
> Hi all,
>
> Given the number of Regex guru's on this list.
>
> I'm using the gnu c++ string lib which apparently will accept regex's for
> its string.contains() function call.
>
> I need to parse a date of the form DD/MM/YYYY
>
> and I need to check that is looks exactly like that.
>
> Nothing but intergers and slashes in the right places.
>
> Any ideas ?
>
> Jason
>
>
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
>
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug