\$([1-9][0-9]*\.[0-9]{2})
Starts with a dollar sign (escaped), has a number (non-zero), may be followed by
any other numbers, followed by a period (escaped) followed by 2 numbers.
Everything other than the dollar sign is in a sub expression so it can be
returned separately
REFind('\$([1-9][0-9]*\.[0-9]{2})', string, 1, 1)
Will return the sub expression.
Michael Dinowitz
Finding technical solutions to the problems you didn't know you had yet
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 28, 2003 5:10 PM
Subject: calling ben doom or other 4 simple regex
> i have a form that the user can select from a menu
> say they pick this one
>
> DVD : Shipping(europe) : insurance > total $27.00(us funds)
>
> i need to strip that down to be just the dollar amount in a whole # so
> that # can be used on a paypal button.
> in this case 27
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Get the mailserver that powers this list at
http://www.coolfusion.com