I can't think of a single regex to do what you want and two is way overkill for something as simple as couple of these... < or >
..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -----Original Message----- From: Web Exp [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 9:27 AM To: CF-Talk Subject: Re: Regex issue Well... i have a javascript validation script that can take a regex pattern to check against. Can someone help me with this regex pattern? For checking if the user input is: Either a percentage value (between 1 and 100) OR it is a integer between 1 and 1400. On Thu, Apr 24, 2008 at 9:01 AM, Gerald Guido <[EMAIL PROTECTED]> wrote: > You can do that with the out of the box CFform > .. > <cfinput type="Text" name="ralph" range="1,100" validate="range" > required="No"> > > > > > On Thu, Apr 24, 2008 at 8:33 AM, Web Exp <[EMAIL PROTECTED]> wrote: > > > Hi... Can someone give me the regex pattern for checking if the user input > > is: > > Either a percentage value (between 1 and 100) OR it is a integer > > between 1 and 1400. > > > > Please help. > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304161 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

