Yeah...

Forgot to mention that I removed the 2, from inside the brace set. I only
want a 4 digit year.

So the resulting regex read liks so:
tmt_globalPatterns.year = new RegExp('^\([0-9]{4}\)$');


<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 1:30 PM
To: CF-Talk
Subject: RE: TMT validator, date validation...


Worked perfectly too.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

Just to point out, on the off chance others do not realize it.  The provided
regex will also accept a three digit year; 997 or 007.  This may or may not
be a problem depending on the use.


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------

"C code. C code run. Run code run. Please!"
- Cynthia Dunning





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231804
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to