Not tested: [0-9]{1,5}(\-[0-9]{3})?
You may need to wrap in slashes: /[0-9]{1,5}(\-[0-9]{3})?/
-----Original Message-----
From: Rebecca Wells [mailto:[EMAIL PROTECTED]
Sent: Thursday, 16 June 2005 11:57 a.m.
To: CF-Talk
Subject: OT: stuck on regex
I'm having a heck of a time with this... trying to build a javascript
regExp for the following pattern:
[1-5 digits] [optional hyphen and 3 digits]
If anyone can help, I'd give you a big hug.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209634
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54