in reply to (Ovid) Re: Valid date in regex only
in thread Valid date in regex only

Ovid wrote:

<quote>    What is their tool?</quote>

The tool is called "teamsite". According to my collegues the manual states nothing much about the exact regex-implementation but that it uses "perl-like regular expressions" (no perl-version).

And:

<quote>    ...direct conversion from a Perl regex to another language's regex may not be possible</quote>

changing the outer delimiters and removing comments, spaces, '?:' and the x-modifier did the job for teamsite, leaving (as said) an unreadable string of hooks, parens, hyphens and digits. something like (I don't have the final string here):

validation-regex="^(((0?[1-9]|1\d|2[0-8])/(0?[1-9]|1[0-2])(29|30)/(0?[ +13-9]|1[0-2])31/(0?[13578]|1[02]))/\d{4}|29/0?2/(\d\d(0[48]|[2468][04 +8]|[13579][26])|([02468][048]|[13579][26])00))$"

But it worked :-)

Thanks for the prompt response.
I don't know Willem (or the Hippies you mentioned) but if I ever meet him I'll say hi from Curtis.

Regards,

Danny