\b([\d]{1,10})(\.\d0)\b

\b = word boundary
([\d]{1,10}) = find digits at least 1 char long to 10 chars long
(\.\d0) = find a decimal point followed by 1 digit, followed by a zero
\b = boundary again to make sure that 999.901 doesn't pass.



On May 18, 2010, at 11:30 AM, G Money wrote:

> 
> On Tue, May 18, 2010 at 10:48 AM, Chris Stoner <[email protected]> wrote:
> 
>> 
>> Try this: [0-9]{0,10}(\.[0-9][0]){0,1}
>> 
>> Haven't tested it throughly, but looks like it works.  At the very least
>> will give you a starting point.  Im sure there is a more elegant way to do
>> it but this should be ok.  Or not.
>> 
> 
> Hey Chris, this is close, but 9999.99 passes, and it shouldn't....any ideas?
> 
> 
> -- 
> The suburbs have no charms to soothe
> The restless dream of youth
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:318835
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to