Date:  11/22/2001 11:29:02 PM Msg ID:  000156
From:  Oleg Goncharuk Thread:  000122
Subject:  Re: More HTML questions
It is matter of rearranging regexp:

a)
r=/^(?:[0-2]?[0-9]|[3][01])\/(?:[1][0-2]|[0]?[0-9])\/\d{4}\s*$/
b)
r=/^(?:[0-2]?[0-9]|[3][01])\/(?:[1][0-2]|[0]?[0-9])\/\d{2}\s*$/

c) Supports a) and b) and dd.mm.yy and dd.mm.yyyy also
r=/^(?:[0-2]?[0-9]|[3][01])[.\/](?:[1][0-2]|[0]?[0-9])[.\/]\d{2,4}\s*$/


/Oleg
Sent by Alan Harris-Reid on 11/16/2001 12:33:23 PM:
Oleg, many thanks for the reply.

As regards the script code for date.htc

a) How can I adapt it for UK date (dd/mm/yyyy) format?
b) How can I adapt it for dd/mm/yy format?

Any help would be appreciated.

Alan