Not really sure what exactly you are looking to do, but the regular
expression pattern for numbers under 100 with 7 decimals would be:

\d{2}(\.\d{1,7})?

This makes the decimal optional (with 1 to 7 decimal places). Of course,
this does not protect AGAINST numbers over one hundred. For that you
would need to use a java-style negative look behind (not available in
standard CF RE functions):

(?<!\d{1})\d{2}(\.\d{1,7})?(?!\d{1})

This should make sure you only find the valid numbers ( I think ).


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 10:06 AM
To: CF-Talk
Subject: Regular Expression Help

How would you do numbers under one hundred with a limit of 7 decimals?

 

Lee Surma

Applications Systems Engineer

Wells Fargo Corporate Trust

[EMAIL PROTECTED]

612-667-4066

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267945
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to