Thanks, Peter... I figured it was doing the same thing and was probably a matter of efficiency.
Now I'll see if I can figure out how to put your JS code into the jQuery Validation plug-in I'm using. This is my first attempt at validation using JS... I've been doing it with CF, which works fine, but I'd like to make the field entry feedback immediate and more user-friendly, which I've been able to do so far, but now I'm getting into adding custom validation methods to the plug-in... it's deeeeeep in this end of the pool! :o) Rick -----Original Message----- From: Peter Boughton [mailto:[EMAIL PROTECTED] Sent: Saturday, March 10, 2007 5:57 PM To: CF-Talk Subject: Re: How to turn this into a REGEX for use in javascript? -- Does your code ... ? Yup. -- If so, that would do the same thing. Well it achieves the same result, but I would guess that just REFind is more efficient than IsNumeric+REReplace. -- Also, is that, then, what your JS version is doing? Yup, variable.match(/.../) is the equivalent to REFind("...",variable) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272295 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

