Hello Amir,
> I need regular validation expression in order to check entry of date
> in
> "european" format i.e. 24.09.2007 . Anybody could help?
> So far I have simple expression like this
> (\d{2}\.)(\d{2}\.)(\d{4})
>
> This expression does not prevent entry of 45.23.2006 for example
If you need more fancy validation, either have alook at Peter's Data package
(
http://www.peterblum.com/) or resort to server side validation.
There are also regular expressions which will in fact match a perfect date
including leap years and other variations, but they are so large and usually
in the US format that it will take quite a bit of knowledge of regular expressions
to rework them. You might be lucky and find what you're looking for in the
Regular Expression Library (
http://www.regexlib.net/). I'd reccommend against
them as in my experience, you will need to support alternative formats in
the future. Having one regex will be a serious problem by then.
--
Jesse Houwing
jesse.houwing at sogeti.nl