Not so fast, mister! The function you describe would be more appropriately named isInteger(). ;-)
Patrick > -----Original Message----- > From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 3:42 PM > To: CF-Talk > Subject: Re: regexp > > > > Try this: > > ^[0-9]+$ > > A string must start (^) with a number ([0-9]), at least one number must > > exist (+) and the string ends after one or more numbers ($). > > > Oooh oooh! ... > > function IsNumeric(string) { > return yesnoformat(REFind("^[0-9]$",string)); > } > > isnumeric("3") = yes > usnumeric("3,000") = no > > Wow that would be useful... How come on one's thought of that before? :) > > Sorry Mike... just poking a little geeky fun at your expense. :) > > Although actually, if the field is supposed to be numeric you can > make it a > little easier on some of the slower ( mentally ) users by eliminate dollar > signs, commas and decimals which are common formatting elements for money > values... which can be done with regex, although I think I would probably > wind up using replacelist > > > Isaac Dealey > Certified Advanced ColdFusion Developer > > www.turnkey.to > 954-776-0046 ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

