Re: Validate date
- From: "Roland Hall" <nobody@nowhere>
- Date: Sat, 23 Jul 2005 18:14:53 -0500
"Dr John Stockton" wrote in message
news:ji0UUTDbnr4CFwlv@xxxxxxxxxxxxxxxxxxxxx
:
: >It would change to: (19|20\d\d)([-
: ^^^^^
: Forcing into 1900-2099 (previously alluded to) would be a restriction,
: liable to annoy genealogists for example. But I now think that your
: code actually allows just the years 19 and 2000-2099, however.
After following your advice re: \1, it failed so I have now gone to:
((19|20)\d\d)([ ]*|[- /.])(0[1-9]|1[012])([ ]*|[-
/.])(0[1-9]|[12][0-9]|3[01])
: >I guess you missed the space in there since I didn't write it as \s.
Your
: >version of VBS should support it.
:
: I use VBS predominantly in HTML; and mine does not support RegExps at
: all AFAICS. I don't recall whether I've tried it with the CSCRIPT /
: WSCRIPT programs.
Perhaps it's time to upgrade to 5.6?!
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
.
- Follow-Ups:
- Re: Validate date
- From: Dr John Stockton
- Re: Validate date
- References:
- Validate date
- From: Vrr
- Re: Validate date
- From: Roland Hall
- Re: Validate date
- From: Dr John Stockton
- Re: Validate date
- From: Roland Hall
- Re: Validate date
- From: Dr John Stockton
- Re: Validate date
- From: Roland Hall
- Re: Validate date
- From: Dr John Stockton
- Validate date
- Prev by Date: Re: Validate date
- Next by Date: Re: How to convert International number strings to their number va
- Previous by thread: Re: Validate date
- Next by thread: Re: Validate date
- Index(es):